Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix build on minimal versions #821

Merged
merged 1 commit into from
Oct 20, 2024
Merged

Conversation

Toru3
Copy link
Contributor

@Toru3 Toru3 commented Oct 20, 2024

38b6d7f

$ cargo +nightly update -Z minimal-versions && cargo +stable --version && cargo +stable check
    Updating crates.io index
     Locking 0 packages to earliest compatible versions
note: pass `--verbose` to see 161 unchanged dependencies behind latest
cargo 1.82.0 (8f40fc59f 2024-08-21)
    Checking serde v1.0.85
    Checking regex v1.5.0
    Checking criterion-plot v0.5.0 (/home/tfukaya/codes/criterion.rs/plot)
    Checking clap v4.4.9
error[E0433]: failed to resolve: use of undeclared crate or module `syntax`
 --> /home/tfukaya/.cargo/registry/src/index.crates.io-6f17d22bba15001f/regex-1.5.0/src/literal/mod.rs:9:9
  |
9 |     use syntax::hir::literal::Literals;
  |         ^^^^^^ use of undeclared crate or module `syntax`

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> /home/tfukaya/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.85/src/lib.rs:85:35
   |
85 | #![cfg_attr(feature = "unstable", feature(specialization, never_type))]
   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> /home/tfukaya/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.85/src/lib.rs:86:32
   |
86 | #![cfg_attr(feature = "alloc", feature(alloc))]
   |                                ^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0433`.
error: could not compile `regex` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
For more information about this error, try `rustc --explain E0554`.
error: could not compile `serde` (lib) due to 2 previous errors

8927902

$ cargo +nightly update -Z minimal-versions && cargo +stable --version && cargo +stable check
    Updating crates.io index
     Locking 6 packages to earliest compatible versions
    Removing dtoa v0.4.0
    Updating itoa v0.3.0 -> v1.0.0 (available: v1.0.11)
    Updating plotters v0.3.1 -> v0.3.3 (available: v0.3.7)
    Removing quote v0.3.8
    Updating regex v1.5.0 -> v1.5.1 (available: v1.11.0)
    Updating serde v1.0.85 -> v1.0.166 (available: v1.0.210)
    Updating serde_derive v1.0.0 -> v1.0.166 (available: v1.0.210)
    Removing serde_derive_internals v0.15.0
    Updating serde_json v1.0.0 -> v1.0.100 (available: v1.0.132)
    Removing syn v0.11.10
    Removing synom v0.11.0
    Removing unicode-xid v0.0.4
note: pass `--verbose` to see 150 unchanged dependencies behind latest
cargo 1.82.0 (8f40fc59f 2024-08-21)
   Compiling proc-macro2 v1.0.75
   Compiling unicode-ident v1.0.0
   Compiling serde v1.0.166
   Compiling ryu v1.0.0
   Compiling serde_json v1.0.100
    Checking itoa v1.0.0
    Checking regex v1.5.1
    Checking plotters v0.3.3
   Compiling quote v1.0.35
   Compiling syn v2.0.52
   Compiling serde_derive v1.0.166
    Checking ciborium v0.2.0
    Checking tinytemplate v1.1.0
    Checking criterion v0.5.1 (/home/tfukaya/codes/criterion.rs)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.18s

@lemmih lemmih merged commit 44a9d19 into bheisler:master Oct 20, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants