-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add option for embedded config and fallback resources #262
Add option for embedded config and fallback resources #262
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally the embedded resource files should be used as a system default (replacing current default-resource-directory based configuration).
But as a first step we can have both.
I accept this PR with some miner changes.
Thank you for the review! Everything should be resolved. |
@Kuuuube please apply |
Done |
Partial fix for #218
Allows static binaries to function properly in rust by falling back on default config and resources. Missing support for user defined embedded files but I think sudachi.rs should have at least basic support for static binaries.
Basic example code creating a tokenizer using embedded defaults (dictionary must still be added separately):