Skip to content

Commit dcb07d0

Browse files
committed
wip: remove all the things
1 parent 35d9cd8 commit dcb07d0

File tree

172 files changed

+47
-14241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+47
-14241
lines changed

Cargo.lock

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cluster-client/BUILD.bazel

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# by the Apache License, Version 2.0.
1111

1212
load("@crates_io//:defs.bzl", "aliases", "all_crate_deps")
13-
load("@rules_rust//cargo:defs.bzl", "cargo_build_script", "extract_cargo_lints")
13+
load("@rules_rust//cargo:defs.bzl", "extract_cargo_lints")
1414
load("@rules_rust//rust:defs.bzl", "rust_doc_test", "rust_library", "rust_test")
1515

1616
package(default_visibility = ["//visibility:public"])
@@ -31,7 +31,6 @@ rust_library(
3131
rustc_flags = [],
3232
version = "0.0.0",
3333
deps = [
34-
":mz_cluster_client_build_script",
3534
"//src/ore:mz_ore",
3635
"//src/proto:mz_proto",
3736
] + all_crate_deps(normal = True),
@@ -85,23 +84,6 @@ rust_doc_test(
8584
),
8685
)
8786

88-
filegroup(
89-
name = "all_protos",
90-
srcs = ["src/client.proto"],
91-
)
92-
93-
cargo_build_script(
94-
name = "mz_cluster_client_build_script",
95-
srcs = ["build.rs"],
96-
build_script_env = {},
97-
compile_data = [],
98-
data = [":all_protos"],
99-
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
100-
rustc_env = {},
101-
rustc_flags = [],
102-
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
103-
)
104-
10587
extract_cargo_lints(
10688
name = "lints",
10789
manifest = "Cargo.toml",

src/cluster-client/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ proptest-derive = { version = "0.5.1", features = ["boxed_union"] }
2020
prost = { version = "0.13.5", features = ["no-recursion-limit"] }
2121
serde = { version = "1.0.219", features = ["derive"] }
2222
tokio-stream = "0.1.17"
23-
tonic = "0.12.1"
2423
workspace-hack = { version = "0.0.0", path = "../workspace-hack", optional = true }
2524

2625
[build-dependencies]

src/cluster-client/build.rs

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/cluster-client/src/client.proto

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/cluster-client/src/client.rs

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@
1111
1212
use std::num::NonZeroI64;
1313

14-
use mz_proto::{ProtoType, RustType, TryFromProtoError};
1514
use proptest::prelude::{Arbitrary, any};
1615
use proptest::strategy::{BoxedStrategy, Strategy};
1716
use proptest_derive::Arbitrary;
1817
use serde::{Deserialize, Serialize};
1918

20-
include!(concat!(env!("OUT_DIR"), "/mz_cluster_client.client.rs"));
21-
2219
/// A value generated by environmentd and passed to the clusterd processes
2320
/// to help them disambiguate different `CreateTimely` commands.
2421
///
@@ -43,24 +40,6 @@ impl ClusterStartupEpoch {
4340
}
4441
}
4542

46-
impl RustType<ProtoClusterStartupEpoch> for ClusterStartupEpoch {
47-
fn into_proto(&self) -> ProtoClusterStartupEpoch {
48-
let Self { envd, replica } = self;
49-
ProtoClusterStartupEpoch {
50-
envd: envd.get(),
51-
replica: *replica,
52-
}
53-
}
54-
55-
fn from_proto(proto: ProtoClusterStartupEpoch) -> Result<Self, TryFromProtoError> {
56-
let ProtoClusterStartupEpoch { envd, replica } = proto;
57-
Ok(Self {
58-
envd: envd.try_into().unwrap(),
59-
replica,
60-
})
61-
}
62-
}
63-
6443
impl Arbitrary for ClusterStartupEpoch {
6544
type Strategy = BoxedStrategy<Self>;
6645
type Parameters = ();
@@ -162,32 +141,6 @@ pub struct TimelyConfig {
162141
pub zero_copy_limit: Option<usize>,
163142
}
164143

165-
impl RustType<ProtoTimelyConfig> for TimelyConfig {
166-
fn into_proto(&self) -> ProtoTimelyConfig {
167-
ProtoTimelyConfig {
168-
workers: self.workers.into_proto(),
169-
addresses: self.addresses.into_proto(),
170-
process: self.process.into_proto(),
171-
arrangement_exert_proportionality: self.arrangement_exert_proportionality,
172-
enable_zero_copy: self.enable_zero_copy,
173-
enable_zero_copy_lgalloc: self.enable_zero_copy_lgalloc,
174-
zero_copy_limit: self.zero_copy_limit.into_proto(),
175-
}
176-
}
177-
178-
fn from_proto(proto: ProtoTimelyConfig) -> Result<Self, TryFromProtoError> {
179-
Ok(Self {
180-
process: proto.process.into_rust()?,
181-
workers: proto.workers.into_rust()?,
182-
addresses: proto.addresses.into_rust()?,
183-
arrangement_exert_proportionality: proto.arrangement_exert_proportionality,
184-
enable_zero_copy: proto.enable_zero_copy,
185-
enable_zero_copy_lgalloc: proto.enable_zero_copy_lgalloc,
186-
zero_copy_limit: proto.zero_copy_limit.into_rust()?,
187-
})
188-
}
189-
}
190-
191144
impl TimelyConfig {
192145
/// Split the timely configuration into `parts` pieces, each with a different `process` number.
193146
pub fn split_command(&self, parts: usize) -> Vec<Self> {
@@ -225,33 +178,3 @@ pub struct ClusterReplicaLocation {
225178
/// The workers per process in the replica.
226179
pub workers: usize,
227180
}
228-
229-
#[cfg(test)]
230-
mod tests {
231-
use mz_ore::assert_ok;
232-
use mz_proto::protobuf_roundtrip;
233-
use proptest::prelude::ProptestConfig;
234-
use proptest::proptest;
235-
236-
use super::*;
237-
238-
proptest! {
239-
#![proptest_config(ProptestConfig::with_cases(32))]
240-
241-
#[mz_ore::test]
242-
#[cfg_attr(miri, ignore)] // slow
243-
fn timely_config_protobuf_roundtrip(expect in any::<TimelyConfig>() ) {
244-
let actual = protobuf_roundtrip::<_, ProtoTimelyConfig>(&expect);
245-
assert_ok!(actual);
246-
assert_eq!(actual.unwrap(), expect);
247-
}
248-
249-
#[mz_ore::test]
250-
#[cfg_attr(miri, ignore)] // slow
251-
fn cluster_startup_epoch_protobuf_roundtrip(expect in any::<ClusterStartupEpoch>() ) {
252-
let actual = protobuf_roundtrip::<_, ProtoClusterStartupEpoch>(&expect);
253-
assert_ok!(actual);
254-
assert_eq!(actual.unwrap(), expect);
255-
}
256-
}
257-
}

src/compute-client/BUILD.bazel

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# by the Apache License, Version 2.0.
1111

1212
load("@crates_io//:defs.bzl", "aliases", "all_crate_deps")
13-
load("@rules_rust//cargo:defs.bzl", "cargo_build_script", "extract_cargo_lints")
13+
load("@rules_rust//cargo:defs.bzl", "extract_cargo_lints")
1414
load("@rules_rust//rust:defs.bzl", "rust_doc_test", "rust_library", "rust_test")
1515

1616
package(default_visibility = ["//visibility:public"])
@@ -31,7 +31,6 @@ rust_library(
3131
rustc_flags = [],
3232
version = "0.0.0",
3333
deps = [
34-
":mz_compute_client_build_script",
3534
"//src/build-info:mz_build_info",
3635
"//src/cluster-client:mz_cluster_client",
3736
"//src/compute-types:mz_compute_types",
@@ -133,38 +132,6 @@ rust_doc_test(
133132
),
134133
)
135134

136-
filegroup(
137-
name = "all_protos",
138-
srcs = [
139-
"src/logging.proto",
140-
"src/protocol/command.proto",
141-
"src/protocol/response.proto",
142-
"src/service.proto",
143-
"//src/cluster-client:all_protos",
144-
"//src/compute-types:all_protos",
145-
"//src/dyncfg:all_protos",
146-
"//src/expr:all_protos",
147-
"//src/proto:all_protos",
148-
"//src/repr:all_protos",
149-
"//src/service:all_protos",
150-
"//src/storage-client:all_protos",
151-
"//src/storage-types:all_protos",
152-
"//src/tracing:all_protos",
153-
],
154-
)
155-
156-
cargo_build_script(
157-
name = "mz_compute_client_build_script",
158-
srcs = ["build.rs"],
159-
build_script_env = {},
160-
compile_data = [],
161-
data = [":all_protos"],
162-
proc_macro_deps = [] + all_crate_deps(build_proc_macro = True),
163-
rustc_env = {},
164-
rustc_flags = [],
165-
deps = ["//src/build-tools:mz_build_tools"] + all_crate_deps(build = True),
166-
)
167-
168135
extract_cargo_lints(
169136
name = "lints",
170137
manifest = "Cargo.toml",

src/compute-client/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ thiserror = "2.0.12"
4646
timely = "0.20.0"
4747
tokio = "1.44.1"
4848
tokio-stream = "0.1.17"
49-
tonic = "0.12.1"
5049
tracing = "0.1.37"
5150
uuid = { version = "1.16.0", features = ["serde", "v4"] }
5251
workspace-hack = { version = "0.0.0", path = "../workspace-hack", optional = true }

src/compute-client/build.rs

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)