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 compression with interpolated env #215

Open
stevefan1999-personal opened this issue Aug 13, 2023 · 2 comments
Open

Fix compression with interpolated env #215

stevefan1999-personal opened this issue Aug 13, 2023 · 2 comments

Comments

@stevefan1999-personal
Copy link

I generated some header files to $OUT_DIR/include and I want to embed them with compression because the nature of source code (at least human readable text) very much suits dictionary compression. But it seems like starting from 6.8.1 I cannot reference $OUT_DIR/include anymore.

I wonder what is blocking this usage and are there any alternatives? (Besides from compressing it manually using tar and bzip2 and use Lazy to deflate them in runtime)

@alucryd
Copy link

alucryd commented Aug 28, 2023

Also affected by this:

error: proc-macro derive panicked
  --> src/server.rs:22:10
   |
22 | #[derive(RustEmbed)]
   |          ^^^^^^^^^
   |
   = help: message: `folder` must be a relative path under `compression` feature.

Using:

#[derive(RustEmbed)]
#[folder = "$CARGO_MANIFEST_DIR/target/assets"]
struct Assets;

@alucryd
Copy link

alucryd commented Aug 28, 2023

Reverted to relative paths, I think I had to use interpolation because of my cross builds, but I'll revisit them, hopefully this is no longer an issue.

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