Replies: 1 comment
-
The reason Bevy doesn't expose a lot of these (afaik) is because it makes the engine a lot more opinionated. It also doesn't offer much. We don't want to force users into using crates they don't need (and the engine itself doesn't use). For example, a lot of people use So if we did this, we would probably need to put these dependencies behind a feature flag. And we probably don't want them to be the default (since, again, a lot of people might not need them). But if we put it behind a non-default feature flag, then the user has to opt into them, which is effectively as much work as just adding the dependency manually. Also, I think re-exporting |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
You know that the Rust
std
can't cover all use-cases, even for some simple things, because Rust is a systems language for different purposes. You could end up (in the future maybe) having to add common dependencies to your Bevy project'sCargo.toml
manifest, such asregex
,lazy_regex
,lazy_static
,num_bigint
...I think the following obvious things are lacking to
prelude
orutils
.The only reason I see for not including some crates is only if the dependency version is a problem (inclusively if it's still beta) and the developer would like to specify the dependency theirselves.
If the community agrees with this and no one wants to waste time adding it manually, I can try putting it inside.
Futures
exec_future()
: executes future in the background.future_race()
: similiar tofutures::future::select
, but yields just (v, i) instead of (v, i, remaining futures) for simplicity.Collection literals
Macros for initializing collections (maps and maybe sets).
A way to go
Lazy Statics
lazy_static
Regular Expressions
Alias the
regex
andlazy_regex
crates, which provides literal-like macros too. I just wantedregex
andlazy_regex
mixed into one.A way to go
Number
Alias big integer and add comma separation.
A way to go.
You could also re-export
num_traits::Signed
as it definesis_negative
forBigInt
.Serialization
Alias
serde
and at leastserde_json
.A way to go
Etc
etc. (P.S..: I'm not using this)
Beta Was this translation helpful? Give feedback.
All reactions