Skip to content

Commit

Permalink
[feat] 初始化项目
Browse files Browse the repository at this point in the history
  • Loading branch information
caryxiao committed Jun 3, 2021
1 parent 847f248 commit b07214a
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk
.idea
.idea

# Added by cargo

/target
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[workspace]
members=[
"frpc",
"frps"
]
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
# frp
用rust开发的frp
待开发... 占位置.

## 开发说明
### Client 端
```bash
cargo run -p frpc
```
需要传递参数的使用方式 `-h`会传递给`frpc`命令
```bash
cargo run -p frpc -- -h
```


### Server 端
```bash
cargo run -p frps
```
需要传递参数的使用方式 `-h`会传递给`frps`命令
```bash
cargo run -p frps -- -h
```
9 changes: 9 additions & 0 deletions frpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "frpc"
version = "0.1.0"
authors = ["caryxiao <[email protected]>", "LaughingGor <[email protected]>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
3 changes: 3 additions & 0 deletions frpc/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}
9 changes: 9 additions & 0 deletions frps/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "frps"
version = "0.1.0"
authors = ["caryxiao <[email protected]>", "LaughingGor <[email protected]>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
3 changes: 3 additions & 0 deletions frps/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

0 comments on commit b07214a

Please sign in to comment.