Skip to content

Commit

Permalink
Update to _ for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ladatz committed Jan 25, 2024
1 parent fc636af commit 2abc15e
Show file tree
Hide file tree
Showing 27 changed files with 77 additions and 77 deletions.
56 changes: 28 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ members = [
[workspace.dependencies]
anyhow = "1.0"
async-trait = "0.1"
intent-brokering-common = { path = "./intent_brokering/common/" }
intent-brokering-proto = { path = "./intent_brokering/proto.rs/" }
intent_brokering_common = { path = "./intent_brokering/common/" }
intent_brokering_proto = { path = "./intent_brokering/proto.rs/" }
futures = { version = "0.3" }
lazy_static = "1.4.0"
parking_lot = "0.12.1"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.intent_brokering
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ COPY ./ .

RUN rustup target add x86_64-unknown-linux-musl

RUN cargo build --release --target=x86_64-unknown-linux-musl -p intent-brokering
RUN cargo build --release --target=x86_64-unknown-linux-musl -p intent_brokering

####################################################################################################
## Final image
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.intent_brokering.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ COPY ./ .

RUN rustup target add aarch64-unknown-linux-musl

RUN cargo build --release --target=aarch64-unknown-linux-musl -p intent-brokering
RUN cargo build --release --target=aarch64-unknown-linux-musl -p intent_brokering

#############################################################x#######################################
## Final image
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.intent_brokering.valgrind
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ WORKDIR /sdv

COPY ./ .

RUN cargo build --release -p intent-brokering
RUN cargo build --release -p intent_brokering

#############################################################x#######################################
## Final image
Expand Down
6 changes: 3 additions & 3 deletions intent_brokering/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
# SPDX-License-Identifier: MIT

[package]
name = "intent-brokering"
name = "intent_brokering"
version = "0.1.0"
edition = "2021"
license = "MIT"

[dependencies]
async-recursion = "1.0"
async-trait = { workspace = true }
intent-brokering-common = { workspace = true }
intent-brokering-proto = { workspace = true }
intent_brokering_common = { workspace = true }
intent_brokering_proto = { workspace = true }
prost = { workspace = true }
prost-types = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread", "time"] }
Expand Down
10 changes: 5 additions & 5 deletions intent_brokering/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
- [Without Dev Container](#without-dev-container)
- [Install Dependencies](#install-dependencies)
- [Build all binaries and run tests natively](#build-all-binaries-and-run-tests-natively)
- [Build and run Intent Brokering only](#build-and-run-intent-brokering-only)
- [How to run the examples and interact with Intent Brokering](#how-to-run-the-examples-and-interact-with-intent-brokering)
- [Build and run Intent Brokering only](#build-and-run-intent_brokering-only)
- [How to run the examples and interact with Intent Brokering](#how-to-run-the-examples-and-interact-with-intent_brokering)
- [How to run the dog mode demo](#how-to-run-the-dog-mode-demo)
- [Trademarks](#trademarks)

Expand Down Expand Up @@ -98,8 +98,8 @@ variable to the new target folder. The following sequence works in the devcontai
```shell
vscode ➜ /workspaces/chariott (main) $ sudo mkdir ../target
vscode ➜ /workspaces/chariott (main) $ sudo chown vscode:vscode ../target
vscode ➜ /workspaces/chariott (main) $ CARGO_TARGET_DIR=../target cargo build -p intent-brokering
vscode ➜ /workspaces/chariott (main) $ CARGO_TARGET_DIR=../target cargo run -p intent-brokering
vscode ➜ /workspaces/chariott (main) $ CARGO_TARGET_DIR=../target cargo build -p intent_brokering
vscode ➜ /workspaces/chariott (main) $ CARGO_TARGET_DIR=../target cargo run -p intent_brokering
```

#### Using Podman instead of Docker
Expand Down Expand Up @@ -192,7 +192,7 @@ cargo test --workspace
#### Build and run Intent Brokering only
```bash
cargo run -p intent-brokering
cargo run -p intent_brokering
```
## How to run the examples and interact with Intent Brokering
Expand Down
4 changes: 2 additions & 2 deletions intent_brokering/common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "intent-brokering-common"
name = "intent_brokering_common"
version = "0.1.0"
edition = "2021"
license = "MIT"

[dependencies]
async-trait = { workspace = true }
intent-brokering-proto = { workspace = true }
intent_brokering_proto = { workspace = true }
ess = { path = "../ess" }
regex = { workspace = true }
serde = { workspace = true, features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion intent_brokering/ess/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tokio-util = { workspace = true }
tracing = { workspace = true }

[dev-dependencies]
intent-brokering-common = { path = "../common/" }
intent_brokering_common = { path = "../common/" }
criterion = { version = "0.5.1", features = ["async_tokio"] }
futures = { workspace = true }
tokio = { workspace = true, features = ["macros", "sync", "rt-multi-thread"] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ license = "MIT"
[dependencies]
async-trait = { workspace = true }
base64 = "0.21.7"
intent-brokering-common = { workspace = true }
intent-brokering-proto = { workspace = true }
intent_brokering_common = { workspace = true }
intent_brokering_proto = { workspace = true }
examples-common = { path = "../../common/" }
futures = { workspace = true }
lazy_static = { workspace = true }
Expand All @@ -24,7 +24,7 @@ url = { workspace = true }

[dev-dependencies]
async-trait = { workspace = true }
intent-brokering-common = { workspace = true }
intent_brokering_common = { workspace = true }

[build-dependencies]
tonic-build = { workspace = true }
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ license = "MIT"
anyhow = { workspace = true }
async-stream = "0.3.3"
async-trait = { workspace = true }
intent-brokering-common = { workspace = true }
intent-brokering-proto = { workspace = true }
intent_brokering_common = { workspace = true }
intent_brokering_proto = { workspace = true }
examples-common = { path = "../../common/" }
futures = { workspace = true }
prost = { workspace = true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ license = "MIT"

[dependencies]
async-trait = { workspace = true }
intent-brokering-common = { workspace = true }
intent-brokering-proto = { workspace = true }
intent_brokering_common = { workspace = true }
intent_brokering_proto = { workspace = true }
ess = { path = "../../../ess/" }
examples-common = { path = "../../common/" }
keyvalue = { path = "../../../keyvalue/" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ It shows an example of a command that takes a json string as an input.
Start the Intent Brokering service followed by this application:

```bash
cargo run -p intent-brokering &
cargo run -p intent_brokering &
cargo run -p invoke-command &
```

Expand Down Expand Up @@ -52,6 +52,6 @@ To clean-up from the above commands, run:

```bash
pkill invoke-command
pkill intent-brokering
pkill intent_brokering
pkill grpcurl
```
4 changes: 2 additions & 2 deletions intent_brokering/examples/applications/kv-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ license = "MIT"

[dependencies]
async-trait = { workspace = true }
intent-brokering-common = { workspace = true }
intent-brokering-proto = { workspace = true }
intent_brokering_common = { workspace = true }
intent_brokering_proto = { workspace = true }
ess = { path = "../../../ess/" }
examples-common = { path = "../../common/" }
keyvalue = { path = "../../../keyvalue/" }
Expand Down
2 changes: 1 addition & 1 deletion intent_brokering/examples/applications/kv-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ channel.
Start the Intent Brokering Service followed by this application:

```bash
cargo run -p intent-brokering &
cargo run -p intent_brokering &
cargo run -p kv-app &
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ license = "MIT"

[dependencies]
async-trait = { workspace = true }
intent-brokering-common = { workspace = true }
intent-brokering-proto = { workspace = true }
intent_brokering_common = { workspace = true }
intent_brokering_proto = { workspace = true }
examples-common = { path = "../../common/" }
image = "0.24.8"
lazy_static = { workspace = true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT"

[dependencies]
bollard = "0.15"
intent-brokering-common = { workspace = true }
intent_brokering_common = { workspace = true }
examples-common = { path = "../../common/" }
futures = { workspace = true }
futures-util = "0.3"
Expand Down
4 changes: 2 additions & 2 deletions intent_brokering/examples/applications/lt-provider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"
license = "MIT"

[dependencies]
intent-brokering-common = { workspace = true }
intent-brokering-proto = { workspace = true }
intent_brokering_common = { workspace = true }
intent_brokering_proto = { workspace = true }
examples-common = { path = "../../common/" }
rand = "0.8"
rand_distr = "0.4"
Expand Down
Loading

1 comment on commit 2abc15e

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESS Benchmark

Benchmark suite Current: 2abc15e Previous: 5886244 Ratio
ess/1-subscribers/1000-events 184409 ns/iter (± 7897) 188873 ns/iter (± 6213) 0.98
ess/10-subscribers/1000-events 1283640 ns/iter (± 27758) 1368890 ns/iter (± 32371) 0.94
ess/100-subscribers/1000-events 12400820 ns/iter (± 481535) 13413472 ns/iter (± 574355) 0.92
ess/1-subscribers/10000-events 1671973 ns/iter (± 43722) 1712373 ns/iter (± 59392) 0.98
ess/10-subscribers/10000-events 12662067 ns/iter (± 44995) 13528032 ns/iter (± 51857) 0.94
ess/100-subscribers/10000-events 124922447 ns/iter (± 674344) 131653141 ns/iter (± 461857) 0.95

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.