Skip to content

Commit

Permalink
Change dependencies.
Browse files Browse the repository at this point in the history
* rand is no longer a default dependency
* num-traits is no longer optional
  • Loading branch information
tczajka committed Sep 7, 2023
1 parent ee8ee0e commit cf0732a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: build
args: --no-default-features --features "rand, num-traits, serde"
args: --no-default-features --features "rand, serde"

build-aarch64:
name: Build aarch64
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

### Dependencies
* Minimum Rust version is now 1.61.
* `rand` is no longer a default dependency.
* `num-traits` is no longer optional.

## 0.3.6 - 2022-09-18

Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exclude = ["generate_coverage.sh"]
all-features = true

[features]
default = ["std", "rand", "num-traits"]
default = ["std"]

# Interface with the std library.
std = []
Expand All @@ -29,7 +29,6 @@ version = "1.0.0"
version = "1.1"

[dependencies.num-traits]
optional = true
version = "0.2.14"
default-features = false

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ assert_eq!(format!("{}", x - y), "6902 (mod 10000)");
## Optional dependencies

* `std` (default): for `std::error::Error`.
* `num-traits` (default): integral traits.
* `rand` (default): random number generation.
* `rand`: random number generation.
* `serde`: serialization and deserialization.

## Benchmarks
Expand Down
7 changes: 2 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@
//! # Optional dependencies
//!
//! * `std` (default): for `std::error::Error`.
//! * `num-traits` (default): integral traits.
//! * `rand` (default): random number generation.
//! * `rand`: random number generation.
//! * `serde`: serialization and deserialization.

#![cfg_attr(not(feature = "std"), no_std)]
Expand Down Expand Up @@ -86,6 +85,7 @@ mod memory;
pub mod modular;
mod mul;
mod mul_ops;
mod num_traits;
pub mod ops;
mod parse;
mod pow;
Expand All @@ -99,8 +99,5 @@ mod ubig;
#[cfg(feature = "rand")]
pub mod rand;

#[cfg(feature = "num-traits")]
mod num_traits;

#[cfg(feature = "serde")]
mod serde;

0 comments on commit cf0732a

Please sign in to comment.