fish-shell/fish-rust
Johannes Altmanninger 83fd7ea7c4 Port future_feature_flags.cpp to Rust
This is early work but I guess there's no harm in pushing it?
Some thoughts on the conventions:

Types that live only inside Rust follow Rust naming convention
("FeatureMetadata").

Types that live on both sides of the language boundary follow the existing
naming ("feature_flag_t").
The alternative is to define a type alias ("using feature_flag_t =
rust::FeatureFlag") but that doesn't seem to be supported in "[cxx::bridge]"
blocks. We could put it in a header ("future_feature_flags.h").

"feature_metadata_t" is a variant of "FeatureMetadata" that can cross
the language boundary. This has the advantage that we can avoid tainting
"FeatureMetadata" with "CxxString" and such. This is an experimental approach,
probably not what we should do in general.
2023-02-03 18:55:06 +01:00
..
src Port future_feature_flags.cpp to Rust 2023-02-03 18:55:06 +01:00
widestring-suffix Initial Rust commit 2023-02-02 19:34:47 -07:00
build.rs Port future_feature_flags.cpp to Rust 2023-02-03 18:55:06 +01:00
Cargo.lock Fix linking errors under FreeBSD 2023-02-03 11:36:21 -06:00
Cargo.toml Fix linking errors under FreeBSD 2023-02-03 11:36:21 -06:00