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

cargo build #3

Open
kouzhudong opened this issue Dec 20, 2022 · 2 comments
Open

cargo build #3

kouzhudong opened this issue Dec 20, 2022 · 2 comments

Comments

@kouzhudong
Copy link

D:\code\rust\gephgui-wry>cargo build
warning: unused manifest key: target.cfg(all(windows, target_env = "msvc")).rustflags
Compiling gephgui-wry v0.1.0 (D:\code\rust\gephgui-wry)
error: proc-macro derive panicked
--> src\fakefs.rs:3:10
|
3 | #[derive(RustEmbed)]
| ^^^^^^^^^
|
= help: message: #[derive(RustEmbed)] folder 'D:\code\rust\gephgui-wry\gephgui/dist/' does not exist. cwd: 'D:\code\rust\gephgui-wry'

error[E0599]: no function or associated item named get found for struct FakeFs in the current scope
--> src\main.rs:131:33
|
131 | if let Some(file) = FakeFs::get(url) {
| ^^^ function or associated item not found in FakeFs
|
::: src\fakefs.rs:5:1
|
5 | pub struct FakeFs;
| ----------------- function or associated item get not found for this struct
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following traits define an item get, perhaps you need to implement one of them:
candidate #1: SliceIndex
candidate #2: source::Source
candidate #3: RustEmbed
candidate #4: rustls::client::client_conn::StoresClientSessions
candidate #5: rustls::server::server_conn::StoresServerSessions

For more information about this error, try rustc --explain E0599.
error: could not compile gephgui-wry due to 2 previous errors

@kouzhudong
Copy link
Author

gephgui目录下创建dist目录,编译通过。单是否合法争取?

D:\code\rust\gephgui-wry>cargo build
warning: unused manifest key: target.cfg(all(windows, target_env = "msvc")).rustflags
Compiling gephgui-wry v0.1.0 (D:\code\rust\gephgui-wry)
warning: unused variable: wv
--> src\autoupdate.rs:24:34
|
24 | mt_enqueue(move |wv| {
| ^^ help: if this is intentional, prefix it with an underscore: _wv
|
= note: #[warn(unused_variables)] on by default

warning: gephgui-wry (bin "gephgui-wry") generated 1 warning (run cargo fix --bin "gephgui-wry" to apply 1 suggestion)
Finished dev [unoptimized + debuginfo] target(s) in 5.39s

@by-justin
Copy link

单不是合法争取, 你要先编译 gephgui

git clone --recurse-submodules https://github.com/geph-official/gephgui-wry.git /gephgui-wry && \
  cd /gephgui-wry/gephgui && npm install && npm run build

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

2 participants