mirror of
https://github.com/poem-web/poem.git
synced 2026-01-25 04:18:25 +00:00
poem-mcpserver 0.1.3
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "poem-mcpserver-macros"
|
||||
version = "0.1.2"
|
||||
version = "0.1.3"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
@@ -14,8 +14,8 @@ description = "Macros for poem-mcpserver"
|
||||
proc-macro = true
|
||||
|
||||
[dependencies]
|
||||
darling = "0.20.10"
|
||||
proc-macro-crate = "3.3.0"
|
||||
proc-macro2 = "1.0.94"
|
||||
quote = "1.0.40"
|
||||
syn = "2.0.100"
|
||||
darling.workspace = true
|
||||
proc-macro-crate.workspace = true
|
||||
proc-macro2.workspace = true
|
||||
quote.workspace = true
|
||||
syn.workspace = true
|
||||
|
||||
@@ -36,7 +36,7 @@ pub(crate) fn generate(_args: ToolsArgs, mut item_impl: ItemImpl) -> Result<Toke
|
||||
Some(name) => name.clone(),
|
||||
None => method.sig.ident.to_string(),
|
||||
};
|
||||
let tool_description = get_description(&method.attrs);
|
||||
let tool_description = get_description(&method.attrs).unwrap_or_default();
|
||||
|
||||
if method.sig.asyncness.is_none() {
|
||||
return Err(Error::custom("must be asynchronous").with_span(&method.sig.ident));
|
||||
|
||||
Reference in New Issue
Block a user