flow icon indicating copy to clipboard operation
flow copied to clipboard

Generate function's Cargo.toml from function toml

Open andrewdavidmackenzie opened this issue 3 years ago • 2 comments

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?

andrewdavidmackenzie avatar May 20 '22 08:05 andrewdavidmackenzie

Maybe be able to invoke rustc directly, like how cargo does it for examples?

andrewdavidmackenzie avatar Oct 10 '22 17:10 andrewdavidmackenzie

have function list rust dependencies?

andrewdavidmackenzie avatar Aug 08 '23 20:08 andrewdavidmackenzie