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

编译失败 #2

Open
brightmann opened this issue Nov 6, 2024 · 0 comments
Open

编译失败 #2

brightmann opened this issue Nov 6, 2024 · 0 comments

Comments

@brightmann
Copy link

hi.
cd ~
git clone https://github.com/verilab/pressure pressure-by-verilab
git clone https://github.com/verilab/pressure-demo
cd pressure-by-verilab
PRESSURE_INSTANCE=~/pressure-demo cargo run
显示:
...
Compiling clap v2.33.3
Compiling unic-segment v0.9.0
Compiling slug v0.1.4
Compiling actix-web v3.3.2
Compiling globwalk v0.8.1
Compiling rand v0.8.3
Compiling termcolor v1.1.2
Compiling humantime v2.1.0
Compiling entities v1.0.1
Compiling shell-words v1.0.0
Compiling typed-arena v1.7.0
Compiling humansize v1.1.0
Compiling unicode_categories v0.1.1
Compiling env_logger v0.8.2
Compiling toml v0.5.8
Compiling yaml-rust v0.4.4 (https://github.com/verilab/yaml-rust#2a736dde)
Compiling actix-files v0.5.0
Compiling comrak v0.9.0
Compiling tera v1.6.1 (https://github.com/verilab/tera#62bfe1cf)
Compiling pressure v0.1.0 (C:\Users\12799\pressure-by-verilab)
error[E0432]: unresolved import std::lazy
--> src\web.rs:3:43
|
3 | use std::{cmp::min, collections::HashMap, lazy::OnceCell, path::PathBuf};
| ^^^^ could not find lazy in std

error[E0554]: #![feature] may not be used on the stable release channel
--> src\lib.rs:1:1
|
1 | #![feature(once_cell)]
| ^^^^^^^^^^^^^^^^^^^^^^

warning: the feature once_cell has been stable since 1.70.0 and no longer requires an attribute to enable
--> src\lib.rs:1:12
|
1 | #![feature(once_cell)]
| ^^^^^^^^^
|
= note: #[warn(stable_features)] on by default

Some errors have detailed explanations: E0432, E0554.
For more information about an error, try rustc --explain E0432.
warning: pressure (lib) generated 1 warning
error: could not compile pressure (lib) due to 2 previous errors; 1 warning emitted
warning: build failed, waiting for other jobs to finish...

如何解决?谢谢你!

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

No branches or pull requests

1 participant