Skip to content

example目录下的示例中的build.rs怎么才能运行生成src/greeter/server.rs等文件? #192

@fengnex

Description

@fengnex

如题,示例文档没法用
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个选项都不行

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions