flow
flow copied to clipboard
Generate function's Cargo.toml from function toml
Files like
[package]
name = "compare_switch"
version = "0.11.0"
authors = ["Andrew Mackenzie <[email protected]>"]
edition = "2018"
[lib]
name = "compare_switch"
crate-type = ["cdylib"]
path = "compare_switch.rs"
[profile.release]
debug = false
lto = true
codegen-units = 1
opt-level = 's' # Optimize for size
panic = 'abort' # About unwinding code
strip = "debuginfo"
[dependencies]
flowcore = "0.45"
flowmacro = "0.45"
serde_json = { version = "1.0", default-features = false }
[workspace]
exclude = ["../../.."]
for compare_switch
maybe that information can be included in the compare_switch.toml and it can generate the Cargo.toml file from it?
Maybe be able to invoke rustc directly, like how cargo does it for examples?
have function list rust dependencies?