Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hylo-fix"
version = "0.3.0"
version = "0.4.0"
edition = "2021"
description = "Fixed-point number types with Solana Anchor support"
authors = ["0xPlish <plish@hylo.so>", "Curtis McEnroe <programble@gmail.com>"]
Expand All @@ -17,7 +17,7 @@ name = "fix"
idl-build = ["anchor-lang/idl-build"]

[dependencies]
anchor-lang = "0.30.1"
anchor-lang = "0.31"
anyhow = "1.0.82"
muldiv = "1.0.1"
num-traits = "0.2.17"
Expand Down
41 changes: 4 additions & 37 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/23.11";
rust-overlay.url = "github:oxalica/rust-overlay";
rust-overlay.url = "github:oxalica/rust-overlay/9f3d63d569536cd661a4adcf697e32eb08d61e31";
flake-parts.url = "github:hercules-ci/flake-parts";
};

Expand All @@ -25,7 +25,7 @@
buildInputs = [
openssl
pkg-config
rust-bin.stable.latest.complete
rust-bin.stable."1.81.0".default
rust-analyzer
];
};
Expand Down
10 changes: 0 additions & 10 deletions src/aliases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,12 @@ pub mod binary {
pub type UFix32<Exp> = Fix<u32, U2, Exp>;
pub type UFix64<Exp> = Fix<u64, U2, Exp>;
pub type UFixSize<Exp> = Fix<usize, U2, Exp>;

#[cfg(feature = "i128")]
pub type UFix128<Exp> = Fix<u128, U2, Exp>;

pub type IFix8<Exp> = Fix<i8, U2, Exp>;
pub type IFix16<Exp> = Fix<i16, U2, Exp>;
pub type IFix32<Exp> = Fix<i32, U2, Exp>;
pub type IFix64<Exp> = Fix<i64, U2, Exp>;
pub type IFixSize<Exp> = Fix<isize, U2, Exp>;

#[cfg(feature = "i128")]
pub type IFix128<Exp> = Fix<i128, U2, Exp>;
}

Expand All @@ -34,17 +29,12 @@ pub mod decimal {
pub type UFix32<Exp> = Fix<u32, U10, Exp>;
pub type UFix64<Exp> = Fix<u64, U10, Exp>;
pub type UFixSize<Exp> = Fix<usize, U10, Exp>;

#[cfg(feature = "i128")]
pub type UFix128<Exp> = Fix<u128, U10, Exp>;

pub type IFix8<Exp> = Fix<i8, U10, Exp>;
pub type IFix16<Exp> = Fix<i16, U10, Exp>;
pub type IFix32<Exp> = Fix<i32, U10, Exp>;
pub type IFix64<Exp> = Fix<i64, U10, Exp>;
pub type IFixSize<Exp> = Fix<isize, U10, Exp>;

#[cfg(feature = "i128")]
pub type IFix128<Exp> = Fix<i128, U10, Exp>;
}

Expand Down