Using RustEmbed #1068
-
Hi everyone, [build.env]
volumes = ["../frontend/dist"] and then I ran error: proc-macro derive panicked
--> src/server/mod.rs:14:10
|
14 | #[derive(RustEmbed)]
| ^^^^^^^^^
|
= help: message: #[derive(RustEmbed)] folder '/Users/eliabieri/git/wg_display/app/../frontend/dist' does not exist. cwd: '/Users/eliabieri/git/wg_display/app' but ❯ ls -alhs /Users/eliabieri/git/wg_display/app/../frontend/dist
total 704
0 drwxr-xr-x 7 eliabieri staff 224B 8 Oct 16:36 ./
0 drwxr-xr-x 16 eliabieri staff 512B 8 Oct 16:36 ../
0 drwxr-xr-x 3 eliabieri staff 96B 8 Oct 16:36 assets/
56 -rw-r--r-- 1 eliabieri staff 25K 8 Oct 16:36 frontend-bc4a33fc8e3dc590.js
624 -rw-r--r-- 1 eliabieri staff 310K 8 Oct 16:36 frontend-bc4a33fc8e3dc590_bg.wasm
8 -rw-r--r-- 1 eliabieri staff 482B 8 Oct 16:36 index.html
16 -rw-r--r-- 1 eliabieri staff 7.9K 8 Oct 16:36 output-4b6d8edceb97998.css Context: ❯ tree -L 3 -C
.
├── Cargo.lock
├── LICENSE
├── Makefile
├── README.md
├── Rocket.toml
├── app
│ ├── Cargo.lock
│ ├── Cargo.toml
│ ├── Cross.toml
│ ├── src
│ │ ├── main.rs
│ │ ├── renderer
│ │ ├── server
│ │ └── shared
│ └── target
│ ├── CACHEDIR.TAG
│ ├── armv7-unknown-linux-gnueabihf
│ └── release
├── common
│ ├── Cargo.lock
│ ├── Cargo.toml
│ ├── src
│ │ ├── lib.rs
│ │ └── models.rs
│ └── target
│ ├── CACHEDIR.TAG
│ └── debug
├── frontend
│ ├── Cargo.lock
│ ├── Cargo.toml
│ ├── assets
│ │ └── forest.jpg
│ ├── dist
│ │ ├── assets
│ │ ├── frontend-bc4a33fc8e3dc590.js
│ │ ├── frontend-bc4a33fc8e3dc590_bg.wasm
│ │ ├── index.html
│ │ └── output-4b6d8edceb97998.css
│ ├── index.html
│ ├── input.css
│ ├── output.css
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ └── main.rs
│ ├── tailwind.config.js
│ └── target
│ ├── CACHEDIR.TAG
│ ├── debug
│ ├── release
│ ├── wasm-bindgen
│ └── wasm32-unknown-unknown What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Let me test this locally when I have the time, but we've had some issues with proc macros in the past: #605. |
Beta Was this translation helpful? Give feedback.
-
You're using the try [build.env]
volumes = ["DIST=../frontend/dist"] |
Beta Was this translation helpful? Give feedback.
You're using the
build.env.volumes
feature in a slightly wrong way,try