File tree Expand file tree Collapse file tree 4 files changed +24
-187
lines changed Expand file tree Collapse file tree 4 files changed +24
-187
lines changed Original file line number Diff line number Diff line change 9090 - name : Run tests
9191 run : cargo test --all-features
9292
93+ doc :
94+ name : Generate Documentation
95+ runs-on : ubuntu-latest
96+ steps :
97+ - uses : actions/checkout@v3
98+
99+ - name : Install Rust
100+ uses : dtolnay/rust-toolchain@stable
101+
102+ - uses : Swatinem/rust-cache@v2
103+
104+ - name : Generate documentation
105+ run : |
106+ cargo doc --no-deps -p rmcp -p rmcp-macros
107+ env :
108+ RUSTDOCFLAGS : -Dwarnings
109+
93110 release :
94111 name : Release crates
95112 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -24,9 +24,13 @@ Start a client in one line:
2424use rmcp :: {ServiceExt , transport :: TokioChildProcess };
2525use tokio :: process :: Command ;
2626
27- let client = (). serve (
28- TokioChildProcess :: new (Command :: new (" npx" ). arg (" -y" ). arg (" @modelcontextprotocol/server-everything" ))?
29- ). await ? ;
27+ #[tokio:: main]
28+ async fn main () -> Result <(), Box <dyn std :: error :: Error >> {
29+ let client = (). serve (
30+ TokioChildProcess :: new (Command :: new (" npx" ). arg (" -y" ). arg (" @modelcontextprotocol/server-everything" ))?
31+ ). await ? ;
32+ Ok (())
33+ }
3034```
3135
3236#### 1. Build a transport
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- #![ doc = include_str ! ( concat!( env!( "CARGO_MANIFEST_DIR" ) , "/README.md" ) ) ]
21mod error;
32pub use error:: Error ;
43
You can’t perform that action at this time.
0 commit comments