Skip to content

Commit

Permalink
format_cargo_toml
Browse files Browse the repository at this point in the history
  • Loading branch information
xxchan committed Apr 24, 2023
1 parent 27e9dae commit da57c30
Show file tree
Hide file tree
Showing 48 changed files with 611 additions and 537 deletions.
161 changes: 85 additions & 76 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,114 +1,116 @@
[workspace]
members = [
"scripts/source/prepare_ci_pubsub",
"src/batch",
"src/bench",
"src/cmd",
"src/cmd_all",
"src/common",
"src/common/common_service",
"src/compute",
"src/connector",
"src/ctl",
"src/expr",
"src/expr/macro",
"src/frontend",
"src/frontend/planner_test",
"src/java_binding",
"src/meta",
"src/object_store",
"src/prost",
"src/prost/helpers",
"src/risedevtool",
"src/rpc_client",
"src/source",
"src/sqlparser",
"src/sqlparser/test_runner",
"src/storage",
"src/storage/backup",
"src/storage/backup/cmd",
"src/storage/compactor",
"src/storage/hummock_sdk",
"src/storage/hummock_test",
"src/stream",
"src/test_runner",
"src/tests/compaction_test",
"src/tests/e2e_extended_mode",
"src/tests/regress",
"src/tests/simulation",
"src/tests/sqlsmith",
"src/tests/state_cleaning_test",
"src/tracing",
"src/udf",
"src/utils/local_stats_alloc",
"src/utils/pgwire",
"src/utils/runtime",
"src/utils/sync-point",
"src/utils/workspace-config",
"src/workspace-hack",
"scripts/source/prepare_ci_pubsub",
"src/batch",
"src/bench",
"src/cmd",
"src/cmd_all",
"src/common",
"src/common/common_service",
"src/compute",
"src/connector",
"src/ctl",
"src/expr",
"src/expr/macro",
"src/frontend",
"src/frontend/planner_test",
"src/java_binding",
"src/meta",
"src/object_store",
"src/prost",
"src/prost/helpers",
"src/risedevtool",
"src/rpc_client",
"src/source",
"src/sqlparser",
"src/sqlparser/test_runner",
"src/storage",
"src/storage/backup",
"src/storage/backup/cmd",
"src/storage/compactor",
"src/storage/hummock_sdk",
"src/storage/hummock_test",
"src/stream",
"src/test_runner",
"src/tests/compaction_test",
"src/tests/e2e_extended_mode",
"src/tests/regress",
"src/tests/simulation",
"src/tests/sqlsmith",
"src/tests/state_cleaning_test",
"src/tracing",
"src/udf",
"src/utils/local_stats_alloc",
"src/utils/pgwire",
"src/utils/runtime",
"src/utils/sync-point",
"src/utils/workspace-config",
"src/workspace-hack"
]

[workspace.package]
version = "1.0.0-alpha"
edition = "2021"
homepage = "https://github.com/risingwavelabs/risingwave"
keywords = ["sql", "database", "streaming"]
license = "Apache-2.0"
repository = "https://github.com/risingwavelabs/risingwave"

[workspace.dependencies]
aws-config = { version = "0.51", default-features = false, features = ["rt-tokio", "native-tls"] }
aws-sdk-kinesis = { version = "0.21", default-features = false, features = ["rt-tokio", "native-tls"] }
aws-sdk-s3 = { version = "0.21", default-features = false, features = ["rt-tokio","native-tls"] }
aws-sdk-ec2 = { version = "0.21", default-features = false, features = ["rt-tokio","native-tls"] }
aws-sdk-s3 = { version = "0.21", default-features = false, features = ["rt-tokio", "native-tls"] }
aws-sdk-ec2 = { version = "0.21", default-features = false, features = ["rt-tokio", "native-tls"] }
aws-sdk-sqs = { version = "0.21", default-features = false, features = ["rt-tokio", "native-tls"] }
aws-smithy-http = "0.51"
aws-smithy-types = "0.51"
aws-endpoint = "0.51"
aws-types = { version = "0.51", features = ["hardcoded-credentials"] }

[profile.dev]
lto = 'off'
[workspace.dependencies.aws-sdk-kinesis]
version = "0.21"
default-features = false
features = ["rt-tokio", "native-tls"]

[profile.release]
debug = 1 # line tables only
lto = 'thin'
[workspace.package]
version = "1.0.0-alpha"
edition = "2021"
homepage = "https://github.com/risingwavelabs/risingwave"
keywords = ["sql", "database", "streaming"]
license = "Apache-2.0"
repository = "https://github.com/risingwavelabs/risingwave"

[profile.bench]
opt-level = 3
debug = false
codegen-units = 1
lto = 'thin'
lto = "thin"
incremental = false
debug-assertions = false
overflow-checks = false
rpath = false

# The profile used for CI in main branch.
# This profile inherits from the release profile, but turns on some checks and assertions for us to
# better catch bugs in CI.
[profile.ci-release]
inherits = "release"
debug-assertions = true
overflow-checks = true

# The profile used for CI in pull requests.
# External dependencies are built with optimization enabled, while crates in this workspace are built
# with `dev` profile and full debug info. This is a trade-off between build time and e2e test time.
[profile.ci-dev]
inherits = "dev"
incremental = false
[profile.ci-dev.package."*"] # external dependencies

[profile.ci-dev.package."*" ] # external dependencies
opt-level = 1
[profile.ci-dev.package."tokio"]

[profile.ci-dev.package.await-tree]
opt-level = 3
[profile.ci-dev.package."await-tree"]

[profile.ci-dev.package.indextree]
opt-level = 3
[profile.ci-dev.package."indextree"]

[profile.ci-dev.package.task_stats_alloc]
opt-level = 3
[profile.ci-dev.package."task_stats_alloc"]

[profile.ci-dev.package.tokio]
opt-level = 3

# The profile used for CI in main branch.
# This profile inherits from the release profile, but turns on some checks and assertions for us to
# better catch bugs in CI.
[profile.ci-release]
inherits = "release"
debug-assertions = true
overflow-checks = true

# The profile used for deterministic simulation tests in CI.
# The simulator can only run single-threaded, so optimization is required to make the running time
# reasonable. The optimization level is customized to speed up the build.
Expand All @@ -117,6 +119,13 @@ inherits = "dev"
opt-level = 2
incremental = false

[profile.dev]
lto = "off"

[profile.release]
debug = 1 # line tables only
lto = "thin"

# Patch third-party crates for deterministic simulation.
[patch.crates-io]
quanta = { git = "https://github.com/madsim-rs/quanta.git", rev = "948bdc3" }
Expand Down
16 changes: 6 additions & 10 deletions scripts/source/prepare_ci_pubsub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "prepare_ci_pubsub"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[package.metadata.cargo-machete]
ignored = ["workspace-hack"]

Expand All @@ -14,12 +14,8 @@ normal = ["workspace-hack"]
anyhow = "1"
google-cloud-googleapis = { version = "0.6.0", features = ["pubsub"] }
google-cloud-pubsub = "0.7.0"
tokio = { version = "0.2", package = "madsim-tokio", features = [
"rt",
"rt-multi-thread",
"sync",
"macros",
"time",
"signal",
"fs",
] }

[dependencies.tokio]
version = "0.2"
package = "madsim-tokio"
features = ["rt", "rt-multi-thread", "sync", "macros", "time", "signal", "fs"]
40 changes: 18 additions & 22 deletions src/batch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,63 +39,59 @@ risingwave_source = { path = "../source" }
risingwave_storage = { path = "../storage" }
serde_json = "1"
thiserror = "1"
tokio = { version = "0.2", package = "madsim-tokio", features = [
"rt",
"rt-multi-thread",
"sync",
"macros",
"time",
"signal",
"fs",
] }
tokio-metrics = "0.1.0"
tokio-stream = "0.1"
tonic = { version = "0.2", package = "madsim-tonic" }
tracing = "0.1"
uuid = "1"

[target.'cfg(enable_task_local_alloc)'.dependencies]
[dependencies.tokio]
version = "0.2"
package = "madsim-tokio"
features = ["rt", "rt-multi-thread", "sync", "macros", "time", "signal", "fs"]

[target.'cfg(enable_task_local_alloc)' .dependencies]
task_stats_alloc = { path = "../utils/task_stats_alloc" }

[target.'cfg(not(madsim))'.dependencies]
[target.'cfg(not(madsim))' .dependencies]
workspace-hack = { path = "../workspace-hack" }

[target.'cfg(unix)' .dev-dependencies]
tikv-jemallocator = "0.5"

[dev-dependencies]
criterion = { version = "0.4", features = ["async_tokio", "async"] }
rand = "0.8"
tempfile = "3"

[target.'cfg(unix)'.dev-dependencies]
tikv-jemallocator = "0.5"

[[bench]]
name = "filter"
harness = false
name = "filter"

[[bench]]
name = "nested_loop_join"
harness = false
name = "nested_loop_join"

[[bench]]
name = "hash_join"
harness = false
name = "hash_join"

[[bench]]
name = "sort"
harness = false
name = "sort"

[[bench]]
name = "top_n"
harness = false
name = "top_n"

[[bench]]
name = "hash_agg"
harness = false
name = "hash_agg"

[[bench]]
name = "expand"
harness = false
name = "expand"

[[bench]]
name = "limit"
harness = false
name = "limit"
36 changes: 18 additions & 18 deletions src/bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,37 +22,32 @@ isahc = { version = "1", default-features = false }
itertools = "0.10"
libc = "0.2"
opentelemetry = { version = "0.17", optional = true, features = ["rt-tokio"] }
opentelemetry-jaeger = { version = "0.16", optional = true, features = [
"rt-tokio",
"collector_client",
"isahc",
"isahc_collector_client",
] }
parking_lot = "0.12"
prometheus = { version = "0.13", features = ["process"] }
rand = "0.8"
risingwave_common = { path = "../common" }
risingwave_storage = { path = "../storage" }
serde = { version = "1", features = ["derive"] }
tokio = { version = "0.2", package = "madsim-tokio", features = [
"fs",
"rt",
"rt-multi-thread",
"sync",
"macros",
"time",
"signal",
] }
tokio-stream = "0.1"
toml = "0.7"
tracing = "0.1"
tracing-opentelemetry = { version = "0.17", optional = true }
tracing-subscriber = "0.3.16"

[target.'cfg(not(madsim))'.dependencies]
[dependencies.opentelemetry-jaeger]
version = "0.16"
optional = true
features = ["rt-tokio", "collector_client", "isahc", "isahc_collector_client"]

[dependencies.tokio]
version = "0.2"
package = "madsim-tokio"
features = ["fs", "rt", "rt-multi-thread", "sync", "macros", "time", "signal"]

[target.'cfg(not(madsim))' .dependencies]
workspace-hack = { path = "../workspace-hack" }

[target.'cfg(target_os = "linux")'.dependencies]
[target.'cfg(target_os = "linux")' .dependencies]
nix = { version = "0.25", features = ["fs", "mman"] }

[[bin]]
Expand All @@ -65,4 +60,9 @@ path = "s3_bench/main.rs"

[features]
bpf = ["bcc", "risingwave_storage/bpf"]
trace = ["opentelemetry", "opentelemetry-jaeger", "tracing-opentelemetry", "tracing/release_max_level_trace"]
trace = [
"opentelemetry",
"opentelemetry-jaeger",
"tracing-opentelemetry",
"tracing/release_max_level_trace"
]
Loading

0 comments on commit da57c30

Please sign in to comment.