example目录下的示例中的build.rs怎么才能运行生成src/greeter/server.rs等文件?
- Dominant language
- Rust
- Stars
- 296
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
如题,示例文档没法用
example跑步起来。。。。。。。。。。。
对示例项目运行cargo build不会自动生成
`[package]
name = "dubbo1"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
# [[bin]]
# name = "greeter-server"
# path = "src/greeter/server.rs"
# [[bin]]
# name = "greeter-client"
# path = "src/greeter/client.rs"
[dependencies]
http = "1.0.0"
http-body = "1.0.0"
futures-util = {version = "0.3", default-features = false}
tokio = { version = "1.0", features = [ "rt-multi-thread", "time", "fs", "macros", "net", "signal"] }
prost-derive = {version = "0.12.2", optional = true}
prost = "0.12.2"
async-trait = "0.1.56"
tokio-stream = "0.1"
dubbo = "0.3.0"
dubbo-config = "0.3.0"
[build-dependencies]
# dubbo-build = "0.3.0"
dubbo-build = {git = "https://github.com/yang20150702/dubbo-rust.git"}`
[build-dependencies]的上面2个选项都不行
Contributor guide
Research direction
Inspect the example directory's build.rs and Cargo.toml, then run cargo build to reproduce why src/greeter/server.rs and related files are not generated. Compare the commented and Git-based dubbo-build entries; done means the documented example builds and generates the expected greeter files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system, documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100