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 90
90
- name : Run tests
91
91
run : cargo test --all-features
92
92
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
+
93
110
release :
94
111
name : Release crates
95
112
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -24,9 +24,13 @@ Start a client in one line:
24
24
use rmcp :: {ServiceExt , transport :: TokioChildProcess };
25
25
use tokio :: process :: Command ;
26
26
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
+ }
30
34
```
31
35
32
36
#### 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" ) ) ]
2
1
mod error;
3
2
pub use error:: Error ;
4
3
You can’t perform that action at this time.
0 commit comments