-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example目录下的示例中的build.rs怎么才能运行生成src/greeter/server.rs等文件? #192
Comments
直接在github上下载的dubbo-rust-main目录下执行cargo build可以解决上面的问题。但问题是在dubbo-rust-main之外新建的项目,怎么通过才能对proto文件生产源码?这里主要是dubbo-build这个工具看起来没有起作用或无法自动运行----这个才是是上面的问题。 |
基于dubbo-rust-main在一台机器上运行greeter示例的服务端和客户端,nacos在本地以standalone模式运行,但是client遇到了下面的错误,二者还是不能正常通信,请教怎么解决: |
目前 还在完善中, 不好意思😬 |
理解,期待早日迈向成熟,更新相关文档。 |
目前活跃的开发者不多, 所以进度比较缓慢. 感谢理解. |
看了一部分代码,能发展到现在必须说已经挺好了! |
@fengnex |
建议您先熟悉一下 echo 例子。可以直接clone源代码,在本地运行example。
参考: |
@yang20150702 现在版本的greeter示例已经能正常编译了,需要用到nacos,greeter服务也能注册到nacos,但是greeter-client不能与greeter-server通信,错误信息是: |
echo这个示例写的挺好的,验证通过。但是在Windows10上验证echo-tls时,echo-tls-server.exe和echo-tls-client.exe都能编译出来,把server.crt和ca.crt都添加到系统信任根证书中,echo-tls-server.exe提示server starting. addr: 127.0.0.1:8889,看起来运行正常,但是运行echo-tls-client.exe时报下面的错,请教该怎么解决: |
@onewe 刚才重试了下,greeter示例能编译成功,服务端看起来能正常运行,但是运行客户端时报下面的错误,二者还是不能正常通信: |
现在示例中最新版是v0.4.0,运行的时候报错:
我觉得是nacos-sdk 与 nacos-macro两个库不兼容导致的,nacos-sdk库common::remote::grpc::message::GrpcRequestMessage trait 并没有 request_resource 方法,但nacos-macro在实现他 |
确实 把nacos-sdk升级到0.4.2就可以编译过去,一共两处。nacos-sdk的作者对nacos-macro的版本维护似乎有点问题。 |
nacos-sdk已经修复了这个问题 |
如题,示例文档没法用
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个选项都不行
The text was updated successfully, but these errors were encountered: