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

Can the default resource files be embedded on compile time? #218

Open
yutannihilation opened this issue Jul 18, 2022 · 1 comment
Open

Comments

@yutannihilation
Copy link

Hi, thanks for developing this great library. I played a bit with R (my repo), but I had to struggle with this error when I tried to make a static binary for users that don't have Rust installed. It seems this error is because Config::new() cannot find the files under resources directory.

Io(Os { code: 3, kind: NotFound, message: "指定されたパスが見つかりません。" })

As the files are not very huge, is it possible to embed them somehow, e.g. using include_str macro, on compile time?

@eiennohito
Copy link
Collaborator

Config framework needs to have a complete overhaul. Everything which is present now is a placeholder.

I agree that defaults probably should be embedded in the binary/library as resources.

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