{"id":82538,"date":"2026-07-25T10:10:20","date_gmt":"2026-07-25T02:10:20","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/82538.html"},"modified":"2026-07-25T10:10:20","modified_gmt":"2026-07-25T02:10:20","slug":"%e7%b3%bb%e7%bb%9f%e7%ba%a7%e5%b7%a5%e5%85%b7%e9%93%be%e5%bc%80%e5%8f%91%ef%bc%9acargo-%e5%b7%a5%e4%bd%9c%e5%8c%ba%e7%ae%a1%e7%90%86%ef%bc%8c%e4%bb%8e%e5%8d%95-crate-%e5%88%b0%e5%a4%9a%e6%a8%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/82538.html","title":{"rendered":"\u7cfb\u7edf\u7ea7\u5de5\u5177\u94fe\u5f00\u53d1\uff1aCargo \u5de5\u4f5c\u533a\u7ba1\u7406\uff0c\u4ece\u5355 crate \u5230\u591a\u6a21\u5757\u5de5\u7a0b\u6f14\u8fdb"},"content":{"rendered":"<h2>\u7cfb\u7edf\u7ea7\u5de5\u5177\u94fe\u5f00\u53d1&#xff1a;Cargo \u5de5\u4f5c\u533a\u7ba1\u7406&#xff0c;\u4ece\u5355 crate \u5230\u591a\u6a21\u5757\u5de5\u7a0b\u6f14\u8fdb<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725021014-6a641b067d800.png\" alt=\"cover\" \/><\/p>\n<h3>\u4e00\u3001\u5355 crate \u7684\u5929\u82b1\u677f&#xff1a;\u5f53\u4f60\u7684\u5de5\u5177\u94fe\u5f00\u59cb\u81a8\u80c0<\/h3>\n<p>\u5f88\u591a Rust \u9879\u76ee\u6700\u521d\u90fd\u662f\u4e00\u4e2a\u5355 crate\u3002\u4e00\u4e2a main.rs&#xff0c;\u4e00\u4e2a Cargo.toml&#xff0c;\u7b80\u5355\u76f4\u63a5\u3002\u4f46\u968f\u7740\u529f\u80fd\u589e\u957f&#xff0c;\u95ee\u9898\u5f00\u59cb\u51fa\u73b0&#xff1a;\u7f16\u8bd1\u65f6\u95f4\u8d8a\u6765\u8d8a\u957f&#xff0c;\u4f9d\u8d56\u5173\u7cfb\u8d8a\u6765\u8d8a\u4e71&#xff0c;\u6d4b\u8bd5\u8dd1\u4e00\u6b21\u8981\u7b49\u597d\u51e0\u5206\u949f\u3002<\/p>\n<p>\u66f4\u81f4\u547d\u7684\u662f&#xff0c;\u5f53\u4f60\u60f3\u628a\u5de5\u5177\u94fe\u4e2d\u7684\u67d0\u4e2a\u6a21\u5757\u62bd\u51fa\u6765\u4f5c\u4e3a\u72ec\u7acb\u5e93\u53d1\u5e03\u65f6&#xff0c;\u53d1\u73b0\u6240\u6709\u4ee3\u7801\u90fd\u8026\u5408\u5728\u4e00\u8d77&#xff0c;\u6839\u672c\u65e0\u6cd5\u62c6\u5206\u3002\u6216\u8005\u4f60\u60f3\u8ba9\u5de5\u5177\u94fe\u7684\u4e0d\u540c\u7ec4\u4ef6\u5171\u4eab\u4e00\u4e9b\u516c\u5171\u903b\u8f91&#xff0c;\u4f46\u5355 crate \u7ed3\u6784\u4e0b\u53ea\u80fd\u9760 mod \u6765\u7ec4\u7ec7&#xff0c;\u53d1\u5e03\u548c\u7248\u672c\u7ba1\u7406\u65e0\u4ece\u8c08\u8d77\u3002<\/p>\n<p>Cargo \u5de5\u4f5c\u533a&#xff08;Workspace&#xff09;\u5c31\u662f\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\u6807\u51c6\u65b9\u6848\u3002\u5b83\u5141\u8bb8\u4f60\u5c06\u591a\u4e2a crate \u653e\u5728\u540c\u4e00\u4e2a\u4ed3\u5e93\u4e2d\u7ba1\u7406&#xff0c;\u5171\u4eab\u4e00\u4e2a Cargo.lock&#xff0c;\u7edf\u4e00\u4f9d\u8d56\u7248\u672c&#xff0c;\u540c\u65f6\u4fdd\u6301\u5404 crate \u7684\u72ec\u7acb\u7f16\u8bd1\u548c\u53d1\u5e03\u80fd\u529b\u3002<\/p>\n<p>\u672c\u6587\u5c06\u4ece\u4e00\u4e2a\u5b9e\u9645\u7684\u591a\u6a21\u5757\u5de5\u5177\u94fe\u9879\u76ee\u51fa\u53d1&#xff0c;\u8bb2\u89e3 Cargo \u5de5\u4f5c\u533a\u7684\u7ec4\u7ec7\u65b9\u5f0f\u3001\u4f9d\u8d56\u7ba1\u7406\u7b56\u7565\u548c\u5e38\u89c1\u8e29\u5751\u70b9\u3002<\/p>\n<h3>\u4e8c\u3001Cargo \u5de5\u4f5c\u533a\u7684\u5e95\u5c42\u673a\u5236&#xff1a;\u5171\u4eab\u4e0e\u9694\u79bb\u7684\u5e73\u8861<\/h3>\n<h4>2.1 \u5de5\u4f5c\u533a\u7684\u57fa\u672c\u7ed3\u6784<\/h4>\n<p>Cargo \u5de5\u4f5c\u533a\u7531\u4e00\u4e2a\u6839 Cargo.toml \u548c\u591a\u4e2a\u6210\u5458 crate \u7ec4\u6210\u3002\u6839 Cargo.toml \u4f7f\u7528 [workspace] \u6bb5\u58f0\u660e\u6210\u5458\u5217\u8868&#xff0c;\u6210\u5458 crate \u5404\u81ea\u6709\u72ec\u7acb\u7684 Cargo.toml\u3002<\/p>\n<p>flowchart TD<br \/>\n    A[\u6839 Cargo.toml&lt;br\/&gt;workspace \u5b9a\u4e49] &#8211;&gt; B[\u6210\u5458 crate: cli&lt;br\/&gt;\u547d\u4ee4\u884c\u5165\u53e3]<br \/>\n    A &#8211;&gt; C[\u6210\u5458 crate: core&lt;br\/&gt;\u6838\u5fc3\u903b\u8f91\u5e93]<br \/>\n    A &#8211;&gt; D[\u6210\u5458 crate: utils&lt;br\/&gt;\u516c\u5171\u5de5\u5177\u5e93]<br \/>\n    A &#8211;&gt; E[\u6210\u5458 crate: proto&lt;br\/&gt;\u534f\u8bae\u5b9a\u4e49\u5e93]<br \/>\n    B &#8211;&gt; C<br \/>\n    B &#8211;&gt; D<br \/>\n    C &#8211;&gt; D<br \/>\n    C &#8211;&gt; E<br \/>\n    E &#8211;&gt; D<br \/>\n    F[Cargo.lock&lt;br\/&gt;\u5de5\u4f5c\u533a\u7ea7\u522b\u5171\u4eab] -.-&gt; A<\/p>\n<h4>2.2 \u5171\u4eab Cargo.lock \u7684\u610f\u4e49<\/h4>\n<p>\u5de5\u4f5c\u533a\u4e2d\u6240\u6709\u6210\u5458\u5171\u4eab\u540c\u4e00\u4e2a Cargo.lock\u3002\u8fd9\u786e\u4fdd\u4e86\u4f9d\u8d56\u7248\u672c\u7684\u4e00\u81f4\u6027\u3002\u5982\u679c cli \u548c core \u90fd\u4f9d\u8d56 serde&#xff0c;\u5b83\u4eec\u4e00\u5b9a\u4f7f\u7528\u540c\u4e00\u4e2a\u7248\u672c&#xff0c;\u4e0d\u4f1a\u51fa\u73b0 cli \u7528 serde 1.0.200 \u800c core \u7528 serde 1.0.180 \u7684\u60c5\u51b5\u3002<\/p>\n<p>\u8fd9\u4e2a\u673a\u5236\u5728\u5de5\u5177\u94fe\u5f00\u53d1\u4e2d\u7279\u522b\u91cd\u8981\u3002\u5982\u679c\u4f60\u7684 CLI \u5de5\u5177\u548c\u6838\u5fc3\u5e93\u4f7f\u7528\u4e86\u4e0d\u540c\u7248\u672c\u7684\u4f9d\u8d56&#xff0c;\u53ef\u80fd\u5728\u5e8f\u5217\u5316\/\u53cd\u5e8f\u5217\u5316\u65f6\u51fa\u73b0\u5fae\u5999\u7684\u517c\u5bb9\u6027\u95ee\u9898&#xff0c;\u800c\u4e14\u6781\u96be\u6392\u67e5\u3002<\/p>\n<h4>2.3 \u4f9d\u8d56\u4f20\u9012\u4e0e workspace.dependencies<\/h4>\n<p>Rust 1.64 \u5f15\u5165\u4e86 workspace.dependencies&#xff0c;\u5141\u8bb8\u5728\u6839 Cargo.toml \u4e2d\u7edf\u4e00\u58f0\u660e\u4f9d\u8d56\u7248\u672c&#xff0c;\u6210\u5458 crate \u901a\u8fc7 workspace &#061; true \u5f15\u7528\u3002\u8fd9\u89e3\u51b3\u4e86&#034;\u540c\u4e00\u4e2a\u4f9d\u8d56\u5728\u591a\u4e2a crate \u4e2d\u7248\u672c\u4e0d\u4e00\u81f4&#034;\u7684\u95ee\u9898\u3002<\/p>\n<h4>2.4 \u7f16\u8bd1\u7f13\u5b58\u4e0e\u589e\u91cf\u7f16\u8bd1<\/h4>\n<p>\u5de5\u4f5c\u533a\u7684\u53e6\u4e00\u4e2a\u4f18\u52bf\u662f\u7f16\u8bd1\u7f13\u5b58\u5171\u4eab\u3002\u5f53\u4f60\u4fee\u6539\u4e86 cli crate \u7684\u4ee3\u7801&#xff0c;\u53ea\u6709 cli \u9700\u8981\u91cd\u65b0\u7f16\u8bd1&#xff0c;core \u548c utils \u7684\u7f16\u8bd1\u4ea7\u7269\u4f1a\u88ab\u7f13\u5b58\u590d\u7528\u3002\u8fd9\u5728\u5927\u578b\u5de5\u5177\u94fe\u4e2d\u80fd\u8282\u7701\u5927\u91cf\u7f16\u8bd1\u65f6\u95f4\u3002<\/p>\n<h3>\u4e09\u3001\u751f\u4ea7\u7ea7\u4ee3\u7801&#xff1a;\u4e00\u4e2a\u591a\u6a21\u5757\u5de5\u5177\u94fe\u7684\u5b8c\u6574\u5de5\u4f5c\u533a<\/h3>\n<h4>3.1 \u5de5\u4f5c\u533a\u6839\u914d\u7f6e<\/h4>\n<p># \u6839 Cargo.toml&#xff1a;\u5de5\u4f5c\u533a\u5b9a\u4e49\u4e0e\u7edf\u4e00\u4f9d\u8d56\u7ba1\u7406<br \/>\n[workspace]<br \/>\nmembers &#061; [<br \/>\n    &#034;crates\/cli&#034;,<br \/>\n    &#034;crates\/core&#034;,<br \/>\n    &#034;crates\/utils&#034;,<br \/>\n    &#034;crates\/proto&#034;,<br \/>\n]<br \/>\nresolver &#061; &#034;2&#034;<\/p>\n<p># \u7edf\u4e00\u4f9d\u8d56\u7248\u672c&#xff1a;\u6240\u6709\u6210\u5458 crate \u5f15\u7528\u540c\u4e00\u7248\u672c<br \/>\n[workspace.dependencies]<br \/>\nserde &#061; { version &#061; &#034;1&#034;, features &#061; [&#034;derive&#034;] }<br \/>\nserde_json &#061; &#034;1&#034;<br \/>\ntokio &#061; { version &#061; &#034;1&#034;, features &#061; [&#034;full&#034;] }<br \/>\nanyhow &#061; &#034;1&#034;<br \/>\nthiserror &#061; &#034;1&#034;<br \/>\ntracing &#061; &#034;0.1&#034;<br \/>\ntracing-subscriber &#061; { version &#061; &#034;0.3&#034;, features &#061; [&#034;env-filter&#034;] }<br \/>\nclap &#061; { version &#061; &#034;4&#034;, features &#061; [&#034;derive&#034;] }<\/p>\n<h4>3.2 \u6210\u5458 crate \u914d\u7f6e<\/h4>\n<p># crates\/cli\/Cargo.toml&#xff1a;\u547d\u4ee4\u884c\u5165\u53e3<br \/>\n[package]<br \/>\nname &#061; &#034;my-toolchain-cli&#034;<br \/>\nversion &#061; &#034;0.1.0&#034;<br \/>\nedition &#061; &#034;2021&#034;<\/p>\n<p>[dependencies]<br \/>\nmy-toolchain-core &#061; { path &#061; &#034;..\/core&#034; }<br \/>\nmy-toolchain-utils &#061; { path &#061; &#034;..\/utils&#034; }<br \/>\nserde &#061; { workspace &#061; true }<br \/>\nserde_json &#061; { workspace &#061; true }<br \/>\ntokio &#061; { workspace &#061; true }<br \/>\nanyhow &#061; { workspace &#061; true }<br \/>\nclap &#061; { workspace &#061; true }<br \/>\ntracing &#061; { workspace &#061; true }<br \/>\ntracing-subscriber &#061; { workspace &#061; true }<\/p>\n<p># crates\/core\/Cargo.toml&#xff1a;\u6838\u5fc3\u903b\u8f91\u5e93<br \/>\n[package]<br \/>\nname &#061; &#034;my-toolchain-core&#034;<br \/>\nversion &#061; &#034;0.1.0&#034;<br \/>\nedition &#061; &#034;2021&#034;<\/p>\n<p>[dependencies]<br \/>\nmy-toolchain-utils &#061; { path &#061; &#034;..\/utils&#034; }<br \/>\nmy-toolchain-proto &#061; { path &#061; &#034;..\/proto&#034; }<br \/>\nserde &#061; { workspace &#061; true }<br \/>\nanyhow &#061; { workspace &#061; true }<br \/>\nthiserror &#061; { workspace &#061; true }<br \/>\ntokio &#061; { workspace &#061; true }<br \/>\ntracing &#061; { workspace &#061; true }<\/p>\n<h4>3.3 \u516c\u5171\u5de5\u5177\u5e93&#xff1a;\u6d88\u9664\u91cd\u590d\u4ee3\u7801<\/h4>\n<p>\/\/ crates\/utils\/src\/lib.rs&#xff1a;\u516c\u5171\u5de5\u5177\u51fd\u6570<br \/>\npub mod logging;<br \/>\npub mod config;<br \/>\npub mod error;<\/p>\n<p>\/\/\/ \u521d\u59cb\u5316\u65e5\u5fd7\u7cfb\u7edf&#xff1a;\u7edf\u4e00\u6240\u6709 crate \u7684\u65e5\u5fd7\u683c\u5f0f<br \/>\npub fn init_logging(level: &amp;str) {<br \/>\n    use tracing_subscriber::{fmt, EnvFilter};<br \/>\n    let filter &#061; EnvFilter::try_from_default_env()<br \/>\n        .unwrap_or_else(|_| EnvFilter::new(level));<br \/>\n    fmt().with_env_filter(filter).init();<br \/>\n}<\/p>\n<p>\/\/\/ \u914d\u7f6e\u6587\u4ef6\u8def\u5f84\u89e3\u6790&#xff1a;\u652f\u6301 XDG \u6807\u51c6\u548c\u81ea\u5b9a\u4e49\u8def\u5f84<br \/>\npub fn resolve_config_path(custom: Option&lt;&amp;str&gt;) -&gt; std::path::PathBuf {<br \/>\n    if let Some(path) &#061; custom {<br \/>\n        return std::path::PathBuf::from(path);<br \/>\n    }<br \/>\n    \/\/ \u4f18\u5148\u4f7f\u7528 XDG_CONFIG_HOME<br \/>\n    if let Ok(xdg) &#061; std::env::var(&#034;XDG_CONFIG_HOME&#034;) {<br \/>\n        return std::path::PathBuf::from(xdg).join(&#034;my-toolchain&#034;);<br \/>\n    }<br \/>\n    \/\/ \u56de\u9000\u5230 ~\/.config<br \/>\n    let home &#061; std::env::var(&#034;HOME&#034;).unwrap_or_else(|_| &#034;.&#034;.to_string());<br \/>\n    std::path::PathBuf::from(home)<br \/>\n        .join(&#034;.config&#034;)<br \/>\n        .join(&#034;my-toolchain&#034;)<br \/>\n}<\/p>\n<h4>3.4 \u6838\u5fc3\u5e93&#xff1a;\u4e1a\u52a1\u903b\u8f91\u4e0e\u9519\u8bef\u5904\u7406<\/h4>\n<p>\/\/ crates\/core\/src\/lib.rs&#xff1a;\u6838\u5fc3\u4e1a\u52a1\u903b\u8f91<br \/>\npub mod analyzer;<br \/>\npub mod pipeline;<\/p>\n<p>use my_toolchain_utils::error::AppError;<\/p>\n<p>\/\/\/ \u5206\u6790\u7ed3\u679c&#xff1a;\u6838\u5fc3\u6570\u636e\u7ed3\u6784&#xff0c;\u4f9b CLI \u548c\u5176\u4ed6\u6d88\u8d39\u8005\u4f7f\u7528<br \/>\n#[derive(Debug, serde::Serialize, serde::Deserialize)]<br \/>\npub struct AnalysisResult {<br \/>\n    pub name: String,<br \/>\n    pub score: f64,<br \/>\n    pub details: Vec&lt;String&gt;,<br \/>\n}<\/p>\n<p>\/\/\/ \u6267\u884c\u5206\u6790\u6d41\u6c34\u7ebf&#xff1a;\u4e32\u8054\u591a\u4e2a\u5206\u6790\u6b65\u9aa4<br \/>\npub async fn run_analysis(<br \/>\n    input: &amp;str,<br \/>\n    config: &amp;AnalysisConfig,<br \/>\n) -&gt; Result&lt;Vec&lt;AnalysisResult&gt;, AppError&gt; {<br \/>\n    let raw_data &#061; load_input(input).await?;<br \/>\n    let processed &#061; preprocess(raw_data, config).await?;<br \/>\n    let results &#061; analyze(processed, config).await?;<br \/>\n    Ok(results)<br \/>\n}<\/p>\n<p>\/\/\/ \u5206\u6790\u914d\u7f6e&#xff1a;\u63a7\u5236\u5206\u6790\u884c\u4e3a\u7684\u53c2\u6570<br \/>\n#[derive(Debug, Clone)]<br \/>\npub struct AnalysisConfig {<br \/>\n    pub max_depth: usize,<br \/>\n    pub timeout_secs: u64,<br \/>\n    pub verbose: bool,<br \/>\n}<\/p>\n<p>async fn load_input(path: &amp;str) -&gt; Result&lt;String, AppError&gt; {<br \/>\n    tokio::fs::read_to_string(path)<br \/>\n        .await<br \/>\n        .map_err(|e| AppError::Io(e.to_string()))<br \/>\n}<\/p>\n<p>async fn preprocess(data: String, config: &amp;AnalysisConfig) -&gt; Result&lt;String, AppError&gt; {<br \/>\n    \/\/ \u5b9e\u9645\u5b9e\u73b0\u4e2d\u5305\u542b\u6570\u636e\u6e05\u6d17\u3001\u683c\u5f0f\u8f6c\u6362\u7b49\u6b65\u9aa4<br \/>\n    Ok(data)<br \/>\n}<\/p>\n<p>async fn analyze(data: String, config: &amp;AnalysisConfig) -&gt; Result&lt;Vec&lt;AnalysisResult&gt;, AppError&gt; {<br \/>\n    \/\/ \u5b9e\u9645\u5b9e\u73b0\u4e2d\u5305\u542b\u6838\u5fc3\u5206\u6790\u903b\u8f91<br \/>\n    Ok(vec![])<br \/>\n}<\/p>\n<h4>3.5 CLI \u5165\u53e3&#xff1a;\u7ec4\u88c5\u5404\u6a21\u5757<\/h4>\n<p>\/\/ crates\/cli\/src\/main.rs&#xff1a;\u547d\u4ee4\u884c\u5165\u53e3<br \/>\nuse clap::Parser;<br \/>\nuse my_toolchain_core::{self, AnalysisConfig};<br \/>\nuse my_toolchain_utils;<\/p>\n<p>#[derive(Parser, Debug)]<br \/>\n#[command(name &#061; &#034;my-toolchain&#034;, about &#061; &#034;\u7cfb\u7edf\u7ea7\u5de5\u5177\u94fe&#034;)]<br \/>\nstruct Cli {<br \/>\n    \/\/\/ \u8f93\u5165\u6587\u4ef6\u8def\u5f84<br \/>\n    #[arg(short, long)]<br \/>\n    input: String,<\/p>\n<p>    \/\/\/ \u6700\u5927\u5206\u6790\u6df1\u5ea6<br \/>\n    #[arg(long, default_value_t &#061; 10)]<br \/>\n    max_depth: usize,<\/p>\n<p>    \/\/\/ \u8d85\u65f6\u65f6\u95f4&#xff08;\u79d2&#xff09;<br \/>\n    #[arg(long, default_value_t &#061; 30)]<br \/>\n    timeout: u64,<\/p>\n<p>    \/\/\/ \u8be6\u7ec6\u8f93\u51fa<br \/>\n    #[arg(short, long)]<br \/>\n    verbose: bool,<\/p>\n<p>    \/\/\/ \u914d\u7f6e\u6587\u4ef6\u8def\u5f84<br \/>\n    #[arg(long)]<br \/>\n    config: Option&lt;String&gt;,<br \/>\n}<\/p>\n<p>#[tokio::main]<br \/>\nasync fn main() -&gt; anyhow::Result&lt;()&gt; {<br \/>\n    let cli &#061; Cli::parse();<\/p>\n<p>    \/\/ \u521d\u59cb\u5316\u65e5\u5fd7<br \/>\n    let log_level &#061; if cli.verbose { &#034;debug&#034; } else { &#034;info&#034; };<br \/>\n    my_toolchain_utils::init_logging(log_level);<\/p>\n<p>    \/\/ \u89e3\u6790\u914d\u7f6e<br \/>\n    let config_path &#061; my_toolchain_utils::resolve_config_path(cli.config.as_deref());<br \/>\n    let config &#061; AnalysisConfig {<br \/>\n        max_depth: cli.max_depth,<br \/>\n        timeout_secs: cli.timeout,<br \/>\n        verbose: cli.verbose,<br \/>\n    };<\/p>\n<p>    \/\/ \u6267\u884c\u5206\u6790<br \/>\n    let results &#061; my_toolchain_core::run_analysis(&amp;cli.input, &amp;config).await?;<\/p>\n<p>    \/\/ \u8f93\u51fa\u7ed3\u679c<br \/>\n    let json &#061; serde_json::to_string_pretty(&amp;results)?;<br \/>\n    println!(&#034;{}&#034;, json);<\/p>\n<p>    Ok(())<br \/>\n}<\/p>\n<h3>\u56db\u3001\u5de5\u4f5c\u533a\u7684\u4ee3\u4ef7&#xff1a;\u590d\u6742\u5ea6\u3001\u7f16\u8bd1\u65f6\u95f4\u4e0e\u4f9d\u8d56\u5730\u72f1<\/h3>\n<h4>4.1 \u5faa\u73af\u4f9d\u8d56\u7684\u9677\u9631<\/h4>\n<p>\u5de5\u4f5c\u533a\u4e2d\u6700\u5e38\u89c1\u7684\u95ee\u9898\u662f\u5faa\u73af\u4f9d\u8d56&#xff1a;crate A \u4f9d\u8d56 crate B&#xff0c;crate B \u53c8\u4f9d\u8d56 crate A\u3002Cargo \u4e0d\u5141\u8bb8\u5faa\u73af\u4f9d\u8d56&#xff0c;\u4f1a\u76f4\u63a5\u62a5\u9519\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u5c06\u5171\u4eab\u903b\u8f91\u63d0\u53d6\u5230\u7b2c\u4e09\u4e2a crate \u4e2d\u3002\u5982\u679c A \u548c B \u90fd\u9700\u8981\u67d0\u6bb5\u903b\u8f91&#xff0c;\u628a\u5b83\u653e\u5230 utils crate \u4e2d&#xff0c;\u8ba9 A \u548c B \u90fd\u4f9d\u8d56 utils\u3002<\/p>\n<h4>4.2 \u7f16\u8bd1\u65f6\u95f4\u7684\u6743\u8861<\/h4>\n<p>\u5de5\u4f5c\u533a\u867d\u7136\u652f\u6301\u589e\u91cf\u7f16\u8bd1&#xff0c;\u4f46\u9996\u6b21\u7f16\u8bd1\u4ecd\u7136\u9700\u8981\u7f16\u8bd1\u6240\u6709\u4f9d\u8d56\u3002\u5982\u679c\u67d0\u4e2a\u6210\u5458 crate \u5f15\u5165\u4e86\u91cd\u578b\u4f9d\u8d56&#xff08;\u5982 diesel\u3001aws-sdk&#xff09;&#xff0c;\u5373\u4f7f\u4f60\u53ea\u4fee\u6539\u4e86 cli crate&#xff0c;\u9996\u6b21\u7f16\u8bd1\u65f6\u4e5f\u4f1a\u62c9\u53d6\u5e76\u7f16\u8bd1\u8fd9\u4e9b\u91cd\u578b\u4f9d\u8d56\u3002<\/p>\n<p>\u5efa\u8bae&#xff1a;\u5c06\u91cd\u578b\u4f9d\u8d56\u9650\u5236\u5728\u771f\u6b63\u9700\u8981\u7684 crate \u4e2d&#xff0c;\u907f\u514d\u5728 utils \u7b49\u516c\u5171 crate \u4e2d\u5f15\u5165\u3002<\/p>\n<h4>4.3 \u7248\u672c\u53d1\u5e03\u7684\u534f\u8c03<\/h4>\n<p>\u5de5\u4f5c\u533a\u4e2d\u7684 crate \u5982\u679c\u9700\u8981\u72ec\u7acb\u53d1\u5e03\u5230 crates.io&#xff0c;\u7248\u672c\u53f7\u7ba1\u7406\u662f\u4e00\u4e2a\u6311\u6218\u3002core \u53d1\u5e03\u4e86 0.2.0&#xff0c;\u4f46 cli \u8fd8\u5728\u7528 0.1.0 \u7684 core&#xff0c;\u7528\u6237\u53ef\u80fd\u4f1a\u9047\u5230\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n<p>\u5efa\u8bae&#xff1a;\u4f7f\u7528 cargo release \u5de5\u5177\u7edf\u4e00\u7ba1\u7406\u7248\u672c\u53d1\u5e03&#xff0c;\u6216\u8005\u5728\u5de5\u4f5c\u533a\u5185\u90e8\u59cb\u7ec8\u4f7f\u7528 path \u4f9d\u8d56&#xff0c;\u53ea\u5728\u53d1\u5e03\u65f6\u5207\u6362\u5230\u7248\u672c\u4f9d\u8d56\u3002<\/p>\n<h4>4.4 \u4e0d\u9002\u5408\u5de5\u4f5c\u533a\u7684\u573a\u666f<\/h4>\n<p>\u4ee5\u4e0b\u573a\u666f\u4e0d\u5efa\u8bae\u4f7f\u7528\u5de5\u4f5c\u533a&#xff1a;<\/p>\n<ul>\n<li>\u53ea\u6709\u4e00\u4e2a\u4e8c\u8fdb\u5236\u76ee\u6807&#xff0c;\u6ca1\u6709\u53ef\u590d\u7528\u7684\u903b\u8f91<\/li>\n<li>\u9879\u76ee\u5904\u4e8e\u5feb\u901f\u539f\u578b\u9636\u6bb5&#xff0c;\u6a21\u5757\u8fb9\u754c\u5c1a\u672a\u7a33\u5b9a<\/li>\n<li>\u56e2\u961f\u53ea\u6709\u4e00\u4e2a\u4eba&#xff0c;\u6a21\u5757\u62c6\u5206\u7684\u7ef4\u62a4\u6210\u672c\u5927\u4e8e\u6536\u76ca<\/li>\n<\/ul>\n<h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<p>Cargo \u5de5\u4f5c\u533a\u662f\u7ba1\u7406\u591a crate \u5de5\u5177\u94fe\u7684\u6807\u51c6\u65b9\u6848&#xff0c;\u6838\u5fc3\u4ef7\u503c\u5728\u4e8e\u4f9d\u8d56\u7248\u672c\u7edf\u4e00\u3001\u7f16\u8bd1\u7f13\u5b58\u5171\u4eab\u548c\u6a21\u5757\u72ec\u7acb\u53d1\u5e03\u3002\u4f46\u5de5\u4f5c\u533a\u4e5f\u5e26\u6765\u4e86\u5faa\u73af\u4f9d\u8d56\u98ce\u9669\u3001\u7248\u672c\u534f\u8c03\u590d\u6742\u5ea6\u7b49\u4ee3\u4ef7\u3002<\/p>\n<p>\u843d\u5730\u8def\u7ebf\u5efa\u8bae&#xff1a;<\/p>\n<li>\u9879\u76ee\u521d\u671f\u7528\u5355 crate \u5feb\u901f\u9a8c\u8bc1&#xff0c;\u4e0d\u8981\u8fc7\u65e9\u62c6\u5206<\/li>\n<li>\u5f53\u4ee3\u7801\u91cf\u8d85\u8fc7 3000 \u884c\u6216\u51fa\u73b0\u660e\u786e\u7684\u6a21\u5757\u8fb9\u754c\u65f6&#xff0c;\u518d\u62c6\u5206\u4e3a\u5de5\u4f5c\u533a<\/li>\n<li>\u4f7f\u7528 workspace.dependencies \u7edf\u4e00\u4f9d\u8d56\u7248\u672c&#xff0c;\u907f\u514d\u7248\u672c\u6f02\u79fb<\/li>\n<li>\u5c06\u91cd\u578b\u4f9d\u8d56\u9650\u5236\u5728\u6700\u5c0f\u8303\u56f4\u7684 crate \u4e2d&#xff0c;\u63a7\u5236\u7f16\u8bd1\u65f6\u95f4<\/li>\n<li>\u4f7f\u7528 cargo release \u7edf\u4e00\u7ba1\u7406\u7248\u672c\u53d1\u5e03&#xff0c;\u907f\u514d\u624b\u52a8\u64cd\u4f5c\u9057\u6f0f<\/li>\n<p>\u5de5\u4f5c\u533a\u4e0d\u662f\u8d8a\u5927\u8d8a\u597d&#xff0c;\u800c\u662f\u521a\u597d\u591f\u7528\u5c31\u597d\u3002\u5148\u8dd1\u901a&#xff0c;\u518d\u4f18\u5316&#xff0c;\u8fd9\u662f\u7cfb\u7edf\u7ea7\u5de5\u5177\u94fe\u5f00\u53d1\u7684\u52a1\u5b9e\u8def\u5f84\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7cfb\u7edf\u7ea7\u5de5\u5177\u94fe\u5f00\u53d1&#xff1a;Cargo \u5de5\u4f5c\u533a\u7ba1\u7406&#xff0c;\u4ece\u5355 crate \u5230\u591a\u6a21\u5757\u5de5\u7a0b\u6f14\u8fdb\u4e00\u3001\u5355 crate \u7684\u5929\u82b1\u677f&#xff1a;\u5f53\u4f60\u7684\u5de5\u5177\u94fe\u5f00\u59cb\u81a8\u80c0<br \/>\n\u5f88\u591a Rust \u9879\u76ee\u6700\u521d\u90fd\u662f\u4e00\u4e2a\u5355 crate\u3002\u4e00\u4e2a main.rs&#xff0c;\u4e00\u4e2a Cargo.toml&#xff0c;\u7b80\u5355\u76f4\u63a5\u3002\u4f46\u968f\u7740\u529f\u80fd\u589e\u957f&#xff0c;\u95ee\u9898\u5f00\u59cb\u51fa\u73b0&#xff1a;\u7f16\u8bd1\u65f6\u95f4\u8d8a\u6765\u8d8a\u957f&#xff0c;\u4f9d\u8d56\u5173\u7cfb\u8d8a\u6765\u8d8a\u4e71&#xff0c;\u6d4b\u8bd5\u8dd1\u4e00\u6b21\u8981\u7b49\u597d\u51e0\u5206\u949f\u3002<br \/>\n\u66f4\u81f4\u547d\u7684\u662f&#xff0c;<\/p>\n","protected":false},"author":2,"featured_media":82537,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[92,81,206],"topic":[],"class_list":["post-82538","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-github","tag-python","tag-rust"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7cfb\u7edf\u7ea7\u5de5\u5177\u94fe\u5f00\u53d1\uff1aCargo \u5de5\u4f5c\u533a\u7ba1\u7406\uff0c\u4ece\u5355 crate \u5230\u591a\u6a21\u5757\u5de5\u7a0b\u6f14\u8fdb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/82538.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7cfb\u7edf\u7ea7\u5de5\u5177\u94fe\u5f00\u53d1\uff1aCargo \u5de5\u4f5c\u533a\u7ba1\u7406\uff0c\u4ece\u5355 crate \u5230\u591a\u6a21\u5757\u5de5\u7a0b\u6f14\u8fdb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u7cfb\u7edf\u7ea7\u5de5\u5177\u94fe\u5f00\u53d1&#xff1a;Cargo \u5de5\u4f5c\u533a\u7ba1\u7406&#xff0c;\u4ece\u5355 crate \u5230\u591a\u6a21\u5757\u5de5\u7a0b\u6f14\u8fdb\u4e00\u3001\u5355 crate \u7684\u5929\u82b1\u677f&#xff1a;\u5f53\u4f60\u7684\u5de5\u5177\u94fe\u5f00\u59cb\u81a8\u80c0 \u5f88\u591a Rust \u9879\u76ee\u6700\u521d\u90fd\u662f\u4e00\u4e2a\u5355 crate\u3002\u4e00\u4e2a main.rs&#xff0c;\u4e00\u4e2a Cargo.toml&#xff0c;\u7b80\u5355\u76f4\u63a5\u3002\u4f46\u968f\u7740\u529f\u80fd\u589e\u957f&#xff0c;\u95ee\u9898\u5f00\u59cb\u51fa\u73b0&#xff1a;\u7f16\u8bd1\u65f6\u95f4\u8d8a\u6765\u8d8a\u957f&#xff0c;\u4f9d\u8d56\u5173\u7cfb\u8d8a\u6765\u8d8a\u4e71&#xff0c;\u6d4b\u8bd5\u8dd1\u4e00\u6b21\u8981\u7b49\u597d\u51e0\u5206\u949f\u3002 \u66f4\u81f4\u547d\u7684\u662f&#xff0c;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/82538.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-25T02:10:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725021014-6a641b067d800.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/82538.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/82538.html\",\"name\":\"\u7cfb\u7edf\u7ea7\u5de5\u5177\u94fe\u5f00\u53d1\uff1aCargo \u5de5\u4f5c\u533a\u7ba1\u7406\uff0c\u4ece\u5355 crate \u5230\u591a\u6a21\u5757\u5de5\u7a0b\u6f14\u8fdb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-25T02:10:20+00:00\",\"dateModified\":\"2026-07-25T02:10:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/82538.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/82538.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/82538.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7cfb\u7edf\u7ea7\u5de5\u5177\u94fe\u5f00\u53d1\uff1aCargo \u5de5\u4f5c\u533a\u7ba1\u7406\uff0c\u4ece\u5355 crate \u5230\u591a\u6a21\u5757\u5de5\u7a0b\u6f14\u8fdb\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7cfb\u7edf\u7ea7\u5de5\u5177\u94fe\u5f00\u53d1\uff1aCargo \u5de5\u4f5c\u533a\u7ba1\u7406\uff0c\u4ece\u5355 crate \u5230\u591a\u6a21\u5757\u5de5\u7a0b\u6f14\u8fdb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/82538.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7cfb\u7edf\u7ea7\u5de5\u5177\u94fe\u5f00\u53d1\uff1aCargo \u5de5\u4f5c\u533a\u7ba1\u7406\uff0c\u4ece\u5355 crate \u5230\u591a\u6a21\u5757\u5de5\u7a0b\u6f14\u8fdb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u7cfb\u7edf\u7ea7\u5de5\u5177\u94fe\u5f00\u53d1&#xff1a;Cargo \u5de5\u4f5c\u533a\u7ba1\u7406&#xff0c;\u4ece\u5355 crate \u5230\u591a\u6a21\u5757\u5de5\u7a0b\u6f14\u8fdb\u4e00\u3001\u5355 crate \u7684\u5929\u82b1\u677f&#xff1a;\u5f53\u4f60\u7684\u5de5\u5177\u94fe\u5f00\u59cb\u81a8\u80c0 \u5f88\u591a Rust \u9879\u76ee\u6700\u521d\u90fd\u662f\u4e00\u4e2a\u5355 crate\u3002\u4e00\u4e2a main.rs&#xff0c;\u4e00\u4e2a Cargo.toml&#xff0c;\u7b80\u5355\u76f4\u63a5\u3002\u4f46\u968f\u7740\u529f\u80fd\u589e\u957f&#xff0c;\u95ee\u9898\u5f00\u59cb\u51fa\u73b0&#xff1a;\u7f16\u8bd1\u65f6\u95f4\u8d8a\u6765\u8d8a\u957f&#xff0c;\u4f9d\u8d56\u5173\u7cfb\u8d8a\u6765\u8d8a\u4e71&#xff0c;\u6d4b\u8bd5\u8dd1\u4e00\u6b21\u8981\u7b49\u597d\u51e0\u5206\u949f\u3002 \u66f4\u81f4\u547d\u7684\u662f&#xff0c;","og_url":"https:\/\/www.wsisp.com\/helps\/82538.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-25T02:10:20+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725021014-6a641b067d800.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/82538.html","url":"https:\/\/www.wsisp.com\/helps\/82538.html","name":"\u7cfb\u7edf\u7ea7\u5de5\u5177\u94fe\u5f00\u53d1\uff1aCargo \u5de5\u4f5c\u533a\u7ba1\u7406\uff0c\u4ece\u5355 crate \u5230\u591a\u6a21\u5757\u5de5\u7a0b\u6f14\u8fdb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-25T02:10:20+00:00","dateModified":"2026-07-25T02:10:20+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/82538.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/82538.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/82538.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7cfb\u7edf\u7ea7\u5de5\u5177\u94fe\u5f00\u53d1\uff1aCargo \u5de5\u4f5c\u533a\u7ba1\u7406\uff0c\u4ece\u5355 crate \u5230\u591a\u6a21\u5757\u5de5\u7a0b\u6f14\u8fdb"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/82538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=82538"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/82538\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/82537"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=82538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=82538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=82538"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=82538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}