Skip to content

Commit

Permalink
bump rust-version, fix some documentation, change malachite-base re-e…
Browse files Browse the repository at this point in the history
…xport
  • Loading branch information
mhogrefe committed Jan 30, 2025
1 parent 8384d6b commit 20a7c4b
Show file tree
Hide file tree
Showing 13 changed files with 77 additions and 130 deletions.
131 changes: 33 additions & 98 deletions Cargo.lock

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

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ resolver = "2"

[workspace.package]
edition = "2021"
rust-version = "1.74.0"
rust-version = "1.83.0"

[workspace.dependencies]
malachite-base = { version = "0.4.18", path = 'malachite-base' }
malachite-nz = { version = "0.4.18", path = 'malachite-nz', default_features = false }
malachite-q = { version = "0.4.18", path = 'malachite-q' }
malachite-float = { version = "0.4.18", path = 'malachite-float' }
malachite-base = { version = "0.4.19", path = 'malachite-base' }
malachite-nz = { version = "0.4.19", path = 'malachite-nz', default_features = false }
malachite-q = { version = "0.4.19", path = 'malachite-q' }
malachite-float = { version = "0.4.19", path = 'malachite-float' }

[profile.release]
lto = "fat"
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ Malachite uses `no_std`, unless the `random`, `test_build`, or `bin_build` featu
To use Malachite, add the following to your project's `Cargo.toml` file:
```yaml
[dependencies.malachite]
version = "0.4.18"
version = "0.4.19"
```

By default, all of Malachite's features are included, but you can opt out of some of them. For
example, if you want to use `Natural` and `Integer` but not `Rational`, you can instead use
```yaml
[dependencies.malachite]
version = "0.4.18"
version = "0.4.19"
default-features = false
features = [ "naturals_and_integers" ]
```
Expand Down
2 changes: 1 addition & 1 deletion malachite-base/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "malachite-base"
version = "0.4.18"
version = "0.4.19"
authors = ["Mikhail Hogrefe <[email protected]>"]
rust-version.workspace = true
edition.workspace = true
Expand Down
6 changes: 3 additions & 3 deletions malachite-criterion-bench/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "malachite-criterion-bench"
version = "0.4.18"
version = "0.4.19"
authors = ["Mikhail Hogrefe <[email protected]>"]
autobenches = false
rust-version.workspace = true
edition.workspace = true

[dependencies]
malachite-base = { version = "0.4.18" }
malachite-nz = { version = "0.4.18", default-features = false }
malachite-base = { version = "0.4.19", path = "../malachite-base" }
malachite-nz = { version = "0.4.19", default-features = false, path = "../malachite-nz" }
num = "0.4.1"
rug = { version = "1.21.0", default-features = false, features = ["integer", "serde"] }

Expand Down
8 changes: 4 additions & 4 deletions malachite-float/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "malachite-float"
version = "0.4.18"
version = "0.4.19"
authors = ["Mikhail Hogrefe <[email protected]>"]
rust-version.workspace = true
edition.workspace = true
Expand All @@ -22,9 +22,9 @@ path = "src/bin.rs"

[dependencies]
itertools = { version = "0.11.0", default-features = false, features = ["use_alloc"] }
malachite-base = { version = "0.4.18", default-features = false }
malachite-nz = { version = "0.4.18", default-features = false, features = ["float_helpers"] }
malachite-q = { version = "0.4.18", default-features = false }
malachite-base = { version = "0.4.19", default-features = false, path = "../malachite-base" }
malachite-nz = { version = "0.4.19", default-features = false, features = ["float_helpers"], path = "../malachite-nz" }
malachite-q = { version = "0.4.19", default-features = false, path = "../malachite-q" }
serde = { version = "1.0.188", optional = true, default-features = false, features = ["alloc", "derive"] }

serde_json = { version = "1.0.105", optional = true }
Expand Down
4 changes: 2 additions & 2 deletions malachite-float/src/conversion/from_integer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl Float {
/// whether the returned value is less than, equal to, or greater than the original value.
///
/// If you want the [`Float`]'s precision to be equal to the [`Integer`]'s number of significant
/// bits, try just using `Float::from` instead.
/// bits, try just using `Float::try_from` instead.
///
/// Rounding may occur, in which case [`Nearest`] is used by default. To specify a rounding mode
/// as well as a precision, try [`Float::from_integer_prec_round`].
Expand Down Expand Up @@ -278,7 +278,7 @@ impl Float {
/// value.
///
/// If you want the [`Float`]'s precision to be equal to the [`Integer`]'s number of significant
/// bits, try just using `Float::from` instead.
/// bits, try just using `Float::try_from` instead.
///
/// Rounding may occur, in which case [`Nearest`] is used by default. To specify a rounding mode
/// as well as a precision, try [`Float::from_integer_prec_round_ref`].
Expand Down
4 changes: 2 additions & 2 deletions malachite-float/src/conversion/from_natural.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ impl Float {
/// whether the returned value is less than, equal to, or greater than the original value.
///
/// If you want the [`Float`]'s precision to be equal to the [`Natural`]'s number of significant
/// bits, try just using `Float::from` instead.
/// bits, try just using `Float::try_from` instead.
///
/// Rounding may occur, in which case [`Nearest`] is used by default. To specify a rounding mode
/// as well as a precision, try [`Float::from_natural_prec_round`].
Expand Down Expand Up @@ -546,7 +546,7 @@ impl Float {
/// whether the returned value is less than, equal to, or greater than the original value.
///
/// If you want the [`Float`]'s precision to be equal to the [`Natural`]'s number of significant
/// bits, try just using `Float::from` instead.
/// bits, try just using `Float::try_from` instead.
///
/// Rounding may occur, in which case [`Nearest`] is used by default. To specify a rounding mode
/// as well as a precision, try [`Float::from_natural_prec_round_ref`].
Expand Down
4 changes: 2 additions & 2 deletions malachite-nz/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "malachite-nz"
version = "0.4.18"
version = "0.4.19"
authors = ["Mikhail Hogrefe <[email protected]>"]
rust-version.workspace = true
edition.workspace = true
Expand All @@ -23,7 +23,7 @@ path = "src/bin.rs"
[dependencies]
itertools = { version = "0.11.0", default-features = false, features = ["use_alloc"] }
libm = { version = "0.2.8", default-features = false }
malachite-base = { version = "0.4.18", default-features = false }
malachite-base = { version = "0.4.19", default-features = false, path = "../malachite-base" }
serde = { version = "1.0.188", optional = true, default-features = false, features = ["alloc", "derive"] }

indoc = { version = "2.0.4", optional = true}
Expand Down
6 changes: 3 additions & 3 deletions malachite-q/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "malachite-q"
version = "0.4.18"
version = "0.4.19"
authors = ["Mikhail Hogrefe <[email protected]>"]
rust-version.workspace = true
edition.workspace = true
Expand All @@ -22,8 +22,8 @@ path = "src/bin.rs"

[dependencies]
itertools = { version = "0.11.0", default-features = false, features = ["use_alloc"] }
malachite-base = { version = "0.4.18", default-features = false }
malachite-nz = { version = "0.4.18", default-features = false }
malachite-base = { version = "0.4.19", default-features = false, path = "../malachite-base" }
malachite-nz = { version = "0.4.19", default-features = false, path = "../malachite-nz" }
serde = { version = "1.0.188", optional = true, default-features = false, features = ["alloc", "derive"] }

serde_json = { version = "1.0.105", optional = true }
Expand Down
Loading

0 comments on commit 20a7c4b

Please sign in to comment.