-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCargo.toml
More file actions
148 lines (114 loc) · 4.26 KB
/
Cargo.toml
File metadata and controls
148 lines (114 loc) · 4.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[package]
name = "mcp_rust_examples"
version = "0.1.0"
edition = "2021"
authors = ["Hamze Ghalebi <hamze@remolab.ai>"]
license = "MIT"
description = "Complete educational resource for learning MCP (Model Context Protocol) development with Rust - 20 comprehensive examples from beginner to enterprise level"
repository = "https://github.com/RustSandbox/MCP-Development-with-Rust"
documentation = "https://rustsandbox.github.io/MCP-Development-with-Rust/"
homepage = "https://rustsandbox.github.io/MCP-Development-with-Rust/"
readme = "README.md"
keywords = ["mcp", "protocol", "examples", "tutorial", "education"]
categories = ["development-tools", "network-programming", "rust-patterns"]
exclude = [".github/", "scripts/", "test-deployment.md", ".actrc", ".gitignore"]
[[bin]]
name = "example_01_hello_world"
path = "src/examples/example_01_hello_world.rs"
[[bin]]
name = "example_02_calculator"
path = "src/examples/example_02_calculator.rs"
[[bin]]
name = "example_03_text_processor"
path = "src/examples/example_03_text_processor.rs"
[[bin]]
name = "example_04_simple_client"
path = "src/examples/example_04_simple_client.rs"
[[bin]]
name = "example_05_resource_provider"
path = "src/examples/example_05_resource_provider.rs"
[[bin]]
name = "example_06_configurable_server"
path = "src/examples/example_06_configurable_server.rs"
[[bin]]
name = "example_07_file_operations"
path = "src/examples/example_07_file_operations.rs"
[[bin]]
name = "example_08_http_client"
path = "src/examples/example_08_http_client.rs"
[[bin]]
name = "example_09_database"
path = "src/examples/example_09_database.rs"
[[bin]]
name = "example_10_streaming"
path = "src/examples/example_10_streaming.rs"
[[bin]]
name = "example_11_monitoring"
path = "src/examples/example_11_monitoring.rs"
[[bin]]
name = "example_12_task_queue"
path = "src/examples/example_12_task_queue.rs"
[[bin]]
name = "example_13_auth_service"
path = "src/examples/example_13_auth_service.rs"
[[bin]]
name = "example_14_notification_service"
path = "src/examples/example_14_notification_service.rs"
[[bin]]
name = "example_15_data_pipeline"
path = "src/examples/example_15_data_pipeline.rs"
[[bin]]
name = "example_16_search_service"
path = "src/examples/example_16_search_service.rs"
[[bin]]
name = "example_17_blockchain_integration"
path = "src/examples/example_17_blockchain_integration.rs"
[[bin]]
name = "example_18_ml_model_server"
path = "src/examples/example_18_ml_model_server.rs"
[[bin]]
name = "example_19_microservice_gateway"
path = "src/examples/example_19_microservice_gateway.rs"
[[bin]]
name = "example_20_enterprise_server"
path = "src/examples/example_20_enterprise_server.rs"
[dependencies]
# Core MCP SDK - development version from git (for local development)
# NOTE: This is commented out for crates.io publishing since git dependencies aren't allowed
# Uncomment for local development with full MCP support
# rmcp = { git = "https://github.com/modelcontextprotocol/rust-sdk", branch = "main", features = [
# "server",
# "client",
# ], optional = true }
# Alternative: Use crates.io version when available
# rmcp = { version = "0.1", features = ["server", "client"], optional = true }
# Essential async runtime
tokio = { version = "1.0", features = ["full"] }
# JSON serialization/deserialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Error handling utilities - pinning to avoid v2 breaking changes
thiserror = "1.0"
anyhow = "1.0"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# HTTP client for example 8
reqwest = { version = "0.11", features = ["json"] }
# Database for example 9 - using latest secure version
sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "sqlite"] }
# Time and UUID utilities
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1.0", features = ["v4", "serde"] }
# Random number generation for streaming example - stable version
rand = "0.8"
# Additional utilities
futures = "0.3"
# Cryptographic hashing for authentication example
sha2 = "0.10"
[dev-dependencies]
tempfile = "3.0"
[features]
default = [] # No features by default for crates.io compatibility
# mcp = ["rmcp"] # Commented out until rmcp is available on crates.io
examples-only = [] # Educational examples without external MCP dependencies