Skip to content

Commit

Permalink
cargo workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara committed Oct 2, 2023
1 parent 04e0e40 commit e0b2978
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion sample-03-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "cli"
name = "cli03"
authors = ["Jun Kurihara"]
description = "Rust version of sample-03"
repository = "https://github.com/junkurihara/lecture-security_engineering"
Expand Down
8 changes: 4 additions & 4 deletions sample-03-rs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Then you have an executable binary `./target/release/cli`.
## Usage

```shell:
$ ./target/release/cli -h
$ ./target/release/cli03 -h
Rust version of sample-03
Usage: cli <COMMAND>
Usage: cli03 <COMMAND>
Commands:
get Get ciphertext or plaintext object from the json server
Expand All @@ -32,7 +32,7 @@ Options:
$ ./target/release/post -h
Post ciphertext or plaintext object to the json server
Usage: cli post [OPTIONS] <DATA>
Usage: cli03 post [OPTIONS] <DATA>
Arguments:
<DATA> Plaintext data string
Expand All @@ -48,7 +48,7 @@ Options:
$ ./target/release/get -h
Get ciphertext or plaintext object from the json server
Usage: cli get [OPTIONS] <ID>
Usage: cli03 get [OPTIONS] <ID>
Arguments:
<ID> Id number of the target data on the server
Expand Down
2 changes: 1 addition & 1 deletion sample-04-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "cli"
name = "cli04"
authors = ["Jun Kurihara"]
description = "Rust version of sample-04"
repository = "https://github.com/junkurihara/lecture-security_engineering"
Expand Down
18 changes: 9 additions & 9 deletions sample-04-rs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Rust implementation of [`sample-04`](../sample-04/), which is fully compatible w
$ cargo build --release
```

Then you have an executable binary `./target/release/cli`.
Then you have an executable binary `./target/release/cli04`.

## Usage

```shell:
$ ./target/release/cli -h
$ ./target/release/cli04 -h
Rust version of sample-04
Usage: cli <COMMAND>
Usage: cli04 <COMMAND>
Commands:
get Get ciphertext or plaintext object from the json server
Expand All @@ -30,10 +30,10 @@ Options:
```

```shell:
$ ./target/release/cli post -h
$ ./target/release/cli04 post -h
Post ciphertext or plaintext object to the json server
Usage: cli post [OPTIONS] <DATA>
Usage: cli04 post [OPTIONS] <DATA>
Arguments:
<DATA> Plaintext data string
Expand All @@ -46,10 +46,10 @@ Options:
```

```shell:
$ ./target/release/cli get -h
$ ./target/release/cli04 get -h
Get ciphertext or plaintext object from the json server
Usage: cli get [OPTIONS] <ID>
Usage: cli04 get [OPTIONS] <ID>
Arguments:
<ID> Id number of the target data on the server
Expand All @@ -62,10 +62,10 @@ Options:
```

```shell:
$ ./target/release/cli gen-secret -h
$ ./target/release/cli04 gen-secret -h
Generate master secret
Usage: cli gen-secret <LEN>
Usage: cli04 gen-secret <LEN>
Arguments:
<LEN> Length of secret
Expand Down

0 comments on commit e0b2978

Please sign in to comment.