# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.73" name = "spin-sdk" version = "3.1.0" authors = ["Fermyon Engineering "] description = """ The Spin Rust SDK makes it easy to build Spin components in Rust. """ homepage = "https://developer.fermyon.com/spin/v2/rust-components" documentation = "https://docs.rs/spin-sdk" readme = "README.md" license = "Apache-2.0 WITH LLVM-exception" repository = "https://github.com/fermyon/spin-rust-sdk" [lib] name = "spin_sdk" [dependencies.anyhow] version = "1" [dependencies.async-trait] version = "0.1.74" [dependencies.bytes] version = "1" [dependencies.chrono] version = "0.4.38" [dependencies.form_urlencoded] version = "1.0" [dependencies.futures] version = "0.3.28" [dependencies.hyperium] version = "1.0.0" package = "http" [dependencies.once_cell] version = "1.18.0" [dependencies.routefinder] version = "0.5.3" [dependencies.serde] version = "1.0.163" optional = true [dependencies.serde_json] version = "1.0.96" optional = true [dependencies.spin-executor] version = "3.1.0" [dependencies.spin-macro] version = "3.1.0" [dependencies.thiserror] version = "1.0.37" [dependencies.wit-bindgen] version = "0.16.0" [dev-dependencies.http-body-util] version = "0.1.0" [dev-dependencies.hyper] version = "1.2.0" [dev-dependencies.reqwest] version = "0.11.24" [dev-dependencies.tokio] version = "1.36.0" features = [ "fs", "process", "macros", "rt-multi-thread", "sync", ] [dev-dependencies.wasmtime] version = "18.0.1" [dev-dependencies.wasmtime-wasi] version = "18.0.1" [dev-dependencies.wasmtime-wasi-http] version = "18.0.1" [dev-dependencies.wit-component] version = "0.200.0" [features] default = [ "export-sdk-language", "json", ] export-sdk-language = [] json = [ "dep:serde", "dep:serde_json", ]