mcp_protocol_client/lib.rs
1// Copyright (c) 2025 MCP Rust Contributors
2// SPDX-License-Identifier: MIT
3
4//! # ⛔ DEPRECATED - MCP Protocol Client
5//!
6//! **This crate has been DEPRECATED and consolidated into `mcp-protocol-sdk` v0.4.0+**
7//!
8//! ## 🚀 Migration Instructions
9//!
10//! Replace this dependency:
11//! ```toml
12//! [dependencies]
13//! mcp-protocol-client = "0.1.0"
14//! ```
15//!
16//! With the unified SDK:
17//! ```toml
18//! [dependencies]
19//! mcp-protocol-sdk = "0.4.0"
20//! ```
21//!
22//! All functionality is preserved in the main SDK with the same API.
23//!
24//! ## 📦 Why the Change?
25//!
26//! - **Simpler Dependencies**: One crate instead of multiple
27//! - **Better Maintenance**: Unified codebase
28//! - **More Features**: The main SDK includes additional functionality
29//! - **Same Performance**: No overhead, just better organization
30//!
31//! ## 🔗 Resources
32//!
33//! - **New Crate**: [`mcp-protocol-sdk`](https://crates.io/crates/mcp-protocol-sdk)
34//! - **Documentation**: [docs.rs/mcp-protocol-sdk](https://docs.rs/mcp-protocol-sdk)
35//! - **Repository**: [github.com/mcp-rust/mcp-sdk](https://github.com/mcp-rust/mcp-sdk)
36
37#[deprecated(
38 since = "0.2.0",
39 note = "Use mcp-protocol-sdk v0.4.0+ instead. This crate is consolidated into the main SDK."
40)]
41pub fn deprecated_notice() {
42 println!("⛔ DEPRECATED: mcp-protocol-client has been consolidated into mcp-protocol-sdk v0.4.0+");
43 println!("📦 Please update your Cargo.toml to use: mcp-protocol-sdk = \"0.4.0\"");
44 println!("🔗 More info: https://crates.io/crates/mcp-protocol-sdk");
45}
46
47// Re-export from main SDK if available
48#[cfg(feature = "mcp-protocol-sdk")]
49pub use mcp_protocol_sdk::client::*;