Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ members = [
"src/catalog",
"src/catalog-debug",
"src/catalog-protos",
"src/catalog-types",
"src/ccsr",
"src/cloud-api",
"src/cloud-provider",
Expand Down Expand Up @@ -143,6 +144,7 @@ default-members = [
"src/catalog",
"src/catalog-debug",
"src/catalog-protos",
"src/catalog-types",
"src/ccsr",
"src/cloud-api",
"src/cloud-provider",
Expand Down
5 changes: 1 addition & 4 deletions src/catalog-protos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ workspace = true

[dependencies]
mz-audit-log = { path = "../audit-log" }
mz-compute-types = { path = "../compute-types" }
mz-controller-types = { path = "../controller-types" }
mz-catalog-types = { path = "../catalog-types" }
mz-proto = { path = "../proto" }
mz-repr = { path = "../repr" }
mz-sql = { path = "../sql" }
mz-storage-types = { path = "../storage-types" }
num_enum = "0.7.4"
proptest = { version = "1.9.0", default-features = false, features = ["std"] }
proptest-derive = "0.7.0"
Expand Down
15 changes: 5 additions & 10 deletions src/catalog-protos/src/serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,18 @@

use std::time::Duration;

use mz_compute_types::config::ComputeReplicaLogging;
use mz_controller_types::ReplicaId;
use mz_catalog_types::{
AclMode, CatalogItemId, ComputeReplicaLogging, DatabaseId, GlobalId, MzAclItem,
NetworkPolicyId, RelationVersion, ReplicaId, RoleId, SchemaId, StorageInstanceId,
};
use mz_proto::{ProtoMapEntry, ProtoType, RustType, TryFromProtoError};
use mz_repr::adt::mz_acl_item::{AclMode, MzAclItem};
use mz_repr::network_policy_id::NetworkPolicyId;
use mz_repr::role_id::RoleId;
use mz_repr::{CatalogItemId, GlobalId, RelationVersion};
use mz_sql::catalog::{CatalogItemType, ObjectType, RoleAttributes, RoleMembership, RoleVars};
use mz_sql::names::{
CommentObjectId, DatabaseId, ResolvedDatabaseSpecifier, SchemaId, SchemaSpecifier,
};
use mz_sql::names::{CommentObjectId, ResolvedDatabaseSpecifier, SchemaSpecifier};
use mz_sql::plan::{
ClusterSchedule, NetworkPolicyRule, NetworkPolicyRuleAction, NetworkPolicyRuleDirection,
PolicyAddress,
};
use mz_sql::session::vars::OwnedVarInput;
use mz_storage_types::instances::StorageInstanceId;

impl From<String> for crate::objects::StringWrapper {
fn from(value: String) -> Self {
Expand Down
28 changes: 28 additions & 0 deletions src/catalog-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[package]
name = "mz-catalog-types"
description = "Shared types for the Materialize catalog"
version = "0.0.0"
edition.workspace = true
rust-version.workspace = true
publish = false

[lints]
workspace = true

[dependencies]
anyhow = "1.0.100"
bitflags = "1.3.2"
columnar = "0.11.1"
mz-lowertest = { path = "../lowertest", default-features = false }
mz-ore = { path = "../ore", default-features = false }
proptest = { version = "1.9.0", default-features = false, features = ["std"] }
proptest-derive = "0.7.0"
serde = { version = "1.0.219", features = ["derive"] }
tracing = "0.1.41"
workspace-hack = { version = "0.0.0", path = "../workspace-hack", optional = true }

[features]
default = ["workspace-hack"]

[package.metadata.cargo-udeps.ignore]
normal = ["workspace-hack"]
Loading