Skip to content

Commit 99c4f82

Browse files
committed
Set rust-version to 1.81.0
Because crates.io auto sets it to 1.56.0 because the crate uses edition 2021. This version is too old to compile the crate.
1 parent 32e8c1b commit 99c4f82

File tree

4 files changed

+21
-12
lines changed

4 files changed

+21
-12
lines changed

CHANGELOG.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,28 @@
22

33
This file contains the changes to the crate since version 0.4.8.
44

5+
## 0.9.5
6+
7+
- Set `rust-version` to 1.81.0 since crates.io now auto sets it to the first
8+
version on the given edition if you do not set anything.
9+
For this crate that would be 1.56.0, which is too old to compile it.
10+
511
## 0.9.4
612

713
- Documentation improvements for the macros.
814

915
## 0.9.3
1016

11-
- Clarify which crate versions have which MSRVs.
17+
- Clarified which crate versions have which MSRVs.
1218

1319
## 0.9.2
1420

15-
- Correct docstring of `Primes<N>`.
21+
- Corrected docstring of `Primes<N>`.
1622

1723
## 0.9.1
1824

19-
- Correct docstring of `Primes<N>::default`.
20-
- Correct docstring of `Primes<N>::new`.
25+
- Corrected docstring of `Primes<N>::default`.
26+
- Corrected docstring of `Primes<N>::new`.
2127

2228
## 0.9.0
2329

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
[package]
22
name = "const-primes"
33
authors = ["Johanna Sörngård <[email protected]>"]
4-
version = "0.9.4"
4+
version = "0.9.5"
55
edition = "2021"
66
license = "MIT OR Apache-2.0"
77
keywords = ["const", "primes", "no_std", "prime-numbers"]
88
categories = ["mathematics", "no-std", "no-std::no-alloc", "algorithms"]
99
description = "Work with prime numbers in const contexts. Prime generation, primality testing, prime counting, and more."
1010
repository = "https://github.com/JSorngard/const-primes/"
1111
documentation = "https://docs.rs/const-primes"
12+
rust-version = "1.81.0"
1213

1314
[dependencies]
1415
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }

README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ or check whether a number is prime in a const function.
1414

1515
`no_std` compatible when the `serde` feature is disabled.
1616

17-
This version of the crate supports Rust versions 1.81.0 and up,
17+
This version of the crate supports Rust versions 1.81.0 and up,
1818
while versions 0.8.7 and older support Rust versions 1.67.1 and up.
1919

2020
## Example: generate primes at compile time and use them for related computations
@@ -61,11 +61,13 @@ assert!(CHECK);
6161

6262
## Example: generate the three primes after 5000000031
6363

64-
The crate also provides prime generation and sieving functionality for computing arrays of
65-
large prime numbers above or below some limit, without having to also include every single prime number from 2 and up in the
66-
resulting constant, and thus potentially the binary.
67-
This functionality is most conveniently accessed through the macros `primes_segment!` and
68-
`sieve_segment!` that automatically compute the size of the prime sieve that is needed for a certain computation.
64+
The crate also provides prime generation and sieving functionality for computing
65+
arrays of large prime numbers above or below some limit, without having to also
66+
include every single prime number from 2 and up in the resulting constant,
67+
and thus potentially the binary.
68+
This functionality is most conveniently accessed through the macros `primes_segment!`
69+
and `sieve_segment!` that automatically compute the size of the prime sieve that
70+
is needed for a certain computation.
6971

7072
Compute 3 primes greater than or equal to 5000000031:
7173

0 commit comments

Comments
 (0)