[package] name = "linera-sdk" description = "Library to support developping Linera applications in Rust." readme = "README.md" documentation = "https://docs.rs/linera-sdk/latest/linera_sdk/" authors.workspace = true edition.workspace = true homepage.workspace = true license.workspace = true repository.workspace = true version.workspace = true [package.metadata.cargo-udeps.ignore] development = ["linera-sdk"] [package.metadata.docs.rs] features = ["test", "wasmer"] targets = ["wasm32-unknown-unknown", "x86_64-unknown-linux-gnu"] [features] ethereum = ["async-trait", "linera-ethereum"] wasmer = [ "linera-core/wasmer", "linera-execution/wasmer", "linera-storage/wasmer", "linera-witty/wasmer", ] wasmtime = [ "linera-core/wasmtime", "linera-execution/wasmtime", "linera-storage/wasmtime", "linera-witty/wasmtime", ] test = [ "linera-base/test", "linera-core/test", "linera-sdk/test", "linera-storage/test", "linera-views/test", ] [dependencies] async-graphql.workspace = true async-trait = { workspace = true, optional = true } bcs.workspace = true futures.workspace = true linera-base.workspace = true linera-ethereum = { workspace = true, optional = true } linera-sdk-derive.workspace = true linera-views.workspace = true log.workspace = true serde.workspace = true serde_json.workspace = true thiserror.workspace = true wit-bindgen.workspace = true [target.'cfg(not(target_arch = "wasm32"))'.dependencies] async-graphql.workspace = true anyhow.workspace = true cargo_toml.workspace = true clap.workspace = true dashmap.workspace = true linera-base = { workspace = true, features = ["metrics"] } linera-chain = { workspace = true, features = ["metrics"] } linera-core = { workspace = true, features = ["metrics", "wasmer"] } linera-execution = { workspace = true, features = ["fs", "metrics", "wasmer"] } linera-storage = { workspace = true, features = ["metrics", "wasmer"] } linera-witty.workspace = true serde_json.workspace = true tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } wasmtime.workspace = true [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] linera-sdk = { path = ".", default-features = false, features = ["test"] } tokio-test.workspace = true [build-dependencies] cfg_aliases.workspace = true [[bin]] name = "wit-generator" path = "src/bin/wit_generator.rs"