refactor!: rewrite it in rust #3766
Draft
+1,748
−87
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Warning
This PR is a proof-of-concept, heavily WIP, and is not the consensus of BN core dev team and/or contributors.
Purpose of change
Sorry for the shill; also this is obligatory.
currently the codebase has its core engine logic, hardcoded behavior and util functions amalgamated together. using rust FFI gives us the improved toolings of rust, such as
Easy dependency management
A wealth of safe and ergonomic libraries are a keyboard's type away (e.g
crate add <package>
)Testing
rust's built-in test module makes it easy to write tests.
Describe the solution
TODO: add docs on how it works and migration guide
Describe alternatives you've considered
getting stuck in legacy code purgatory
Testing
the program doesn't segfault.
TODO
url_utility.h
name.h
language.h
Additional context
draft
for a long time, e.g 6 months.