mirror of
https://github.com/extism/extism.git
synced 2026-01-09 13:57:55 -05:00
closes #661. - [x] docs - [x] tests - [x] depend on `extism-convert/extism-pdk-path` feature in https://github.com/extism/rust-pdk https://github.com/extism/rust-pdk/pull/47
34 lines
1004 B
TOML
34 lines
1004 B
TOML
[package]
|
|
name = "extism-convert"
|
|
readme = "./README.md"
|
|
edition.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
homepage.workspace = true
|
|
repository.workspace = true
|
|
version.workspace = true
|
|
description = "Traits to make Rust types usable with Extism"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.75"
|
|
base64 = "~0.21"
|
|
bytemuck = {version = "1.14.0", optional = true }
|
|
prost = { version = "0.12.0", optional = true }
|
|
protobuf = { version = "3.2.0", optional = true }
|
|
rmp-serde = { version = "1.1.2", optional = true }
|
|
serde = "1.0.186"
|
|
serde_json = "1.0.105"
|
|
extism-convert-macros.workspace = true
|
|
|
|
[dev-dependencies]
|
|
# Only required for tests run from the workspace root, as that enables the `extism-path` feature.
|
|
extism.workspace = true
|
|
serde = { version = "1.0.186", features = ["derive"] }
|
|
|
|
[features]
|
|
default = ["msgpack", "prost", "raw"]
|
|
msgpack = ["rmp-serde"]
|
|
raw = ["bytemuck"]
|
|
extism-path = ["extism-convert-macros/extism-path"]
|
|
extism-pdk-path = ["extism-convert-macros/extism-pdk-path"]
|