This repository was archived by the owner on Jan 22, 2026. It is now read-only.
Commit 99a830f
committed
Merge #73: Add msrv1411 feature to pin once_cell to version =1.14
056422d Add msrv1411 feature to pin once_cell to version =1.14 (Steve Myers)
Pull request description:
This is a bit of a hack, but if we make the pinned version of once_cell an optional feature, then only downstream projects that need the older version can opt-in to it by enabling the "msrv1411" feature. For example if I do this:
```toml
[dependencies]
hwi = { path = "../rust-hwi", features = ["msrv1411"] }
```
Then `cargo update` will set the Cargo.lock version of `once_cell` to 1.14.0. But if I don't include the feature:
```toml
[dependencies]
hwi = { path = "../rust-hwi" }
```
Then when I do `cargo update` the Cargo.lock version of `once_cell` is changed to 1.17.1.
I'm not in love with the feature name `msrv1411` if you like this approach and have any better ideas.
ACKs for top commit:
danielabrozzoni:
ACK 056422d
Tree-SHA512: 7f5cbb494cde1b498866ba3937eee9e9b4e54a2b1ef9b823db39c5349e4dbbab0cb885d006fc4cce4889d5a38c58c7e4d936a8ca317a66ce3e1bbe00eed7d7de3 files changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
86 | | - | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
11 | 20 | | |
12 | 21 | | |
13 | 22 | | |
| |||
0 commit comments