* add an actix-web server sse example remove unused import * fix to apply cargo fmt and cargo clippy to pass the the repo checks
48 lines
No EOL
1.2 KiB
TOML
48 lines
No EOL
1.2 KiB
TOML
[package]
|
|
name = "mcp-server-examples"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[dependencies]
|
|
mcp-server = { path = "../../crates/mcp-server" }
|
|
mcp-core = { path = "../../crates/mcp-core" }
|
|
mcp-macros = { path = "../../crates/mcp-macros" }
|
|
tokio = { version = "1", features = ["io-util"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
anyhow = "1.0"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
tracing-appender = "0.2"
|
|
futures = "0.3"
|
|
|
|
[dev-dependencies]
|
|
|
|
tokio-util = { version = "0.7", features = ["io", "codec"]}
|
|
rand = { version = "0.8" }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
|
axum = { version = "0.8", features = ["macros"] }
|
|
tokio = { version = "1", features = ["full"] }
|
|
actix-web = "4"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
|
tokio = { version = "1", features = ["io-util", "rt", "time", "macros"] }
|
|
wasi = { version = "0.11.0+wasi-snapshot-preview1" }
|
|
|
|
[[example]]
|
|
name = "counter-server"
|
|
path = "src/counter_server.rs"
|
|
|
|
[[example]]
|
|
name = "axum"
|
|
path = "src/axum.rs"
|
|
|
|
[[example]]
|
|
name = "wasi_std_io"
|
|
path = "src/wasi_std_io.rs"
|
|
|
|
[[example]]
|
|
name = "actix_web"
|
|
path = "src/actix_web.rs" |