google/comprehensive-rust

Include instructions for connecting to server in Tasks example

开放

#1,349 创建于 2023年10月11日

 (6 条评论) (0 个反应) (1 位负责人)Rust (2,009 个派生)batch import
good first issue

仓库指标

星标
 (32,954 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Discussed in https://github.com/google/comprehensive-rust/discussions/1316

Originally posted by njr0 October 6, 2023 .. I made it run OK (by just adding tokio = { version = "1.32.0", features = ["full"] } as a dependency in Cargo.toml, and I could get it to say connection from 127.0.0.1:64382 etc. by using curl, but I guess I'd have to write code to connect to the socket and receive the question and send a reply and stuff. Presumably, that's what's in the "prepared main.rs. ..


nc or telnet are good tools for this. It's not HTTPS, so curl's not a good choice.

This should be mentioned in the speaker notes.

贡献者指南