Skip to content

Commit 7b55780

Browse files
committed
Rename table crate to spin-resource-table
Signed-off-by: Ryan Levick <[email protected]>
1 parent 5f992cf commit 7b55780

File tree

17 files changed

+31
-31
lines changed

17 files changed

+31
-31
lines changed

Cargo.lock

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

crates/factor-key-value/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ serde = { workspace = true }
1111
spin-core = { path = "../core" }
1212
spin-factors = { path = "../factors" }
1313
spin-locked-app = { path = "../locked-app" }
14+
spin-resource-table = { path = "../table" }
1415
spin-world = { path = "../world" }
15-
table = { path = "../table" }
1616
tokio = { workspace = true, features = ["macros", "sync", "rt"] }
1717
toml = { workspace = true }
1818
tracing = { workspace = true }

crates/factor-key-value/src/host.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use anyhow::{Context, Result};
22
use spin_core::{async_trait, wasmtime::component::Resource};
3+
use spin_resource_table::Table;
34
use spin_world::v2::key_value;
45
use std::{collections::HashSet, sync::Arc};
5-
use table::Table;
66
use tracing::{instrument, Level};
77

88
const DEFAULT_STORE_TABLE_CAPACITY: u32 = 256;

crates/factor-outbound-mqtt/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ rumqttc = { version = "0.24", features = ["url"] }
1010
spin-core = { path = "../core" }
1111
spin-factor-outbound-networking = { path = "../factor-outbound-networking" }
1212
spin-factors = { path = "../factors" }
13+
spin-resource-table = { path = "../table" }
1314
spin-world = { path = "../world" }
14-
table = { path = "../table" }
1515
tokio = { workspace = true, features = ["sync"] }
1616
tracing = { workspace = true }
1717

crates/factor-outbound-mqtt/src/host.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::ClientCreator;
1010

1111
pub struct InstanceState {
1212
allowed_hosts: OutboundAllowedHosts,
13-
connections: table::Table<Arc<dyn MqttClient>>,
13+
connections: spin_resource_table::Table<Arc<dyn MqttClient>>,
1414
create_client: Arc<dyn ClientCreator>,
1515
}
1616

@@ -19,7 +19,7 @@ impl InstanceState {
1919
Self {
2020
allowed_hosts,
2121
create_client,
22-
connections: table::Table::new(1024),
22+
connections: spin_resource_table::Table::new(1024),
2323
}
2424
}
2525
}

crates/factor-outbound-mysql/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ spin-core = { path = "../core" }
2121
spin-expressions = { path = "../expressions" }
2222
spin-factor-outbound-networking = { path = "../factor-outbound-networking" }
2323
spin-factors = { path = "../factors" }
24+
spin-resource-table = { path = "../table" }
2425
spin-world = { path = "../world" }
25-
table = { path = "../table" }
2626
tokio = { workspace = true, features = ["rt-multi-thread"] }
2727
tracing = { workspace = true }
2828
url = { workspace = true }

crates/factor-outbound-mysql/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl<C> OutboundMysqlFactor<C> {
6060

6161
pub struct InstanceState<C> {
6262
allowed_hosts: OutboundAllowedHosts,
63-
connections: table::Table<C>,
63+
connections: spin_resource_table::Table<C>,
6464
}
6565

6666
impl<C: Send + 'static> SelfInstanceBuilder for InstanceState<C> {}

crates/factor-outbound-pg/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ postgres-native-tls = "0.5"
1111
spin-core = { path = "../core" }
1212
spin-factor-outbound-networking = { path = "../factor-outbound-networking" }
1313
spin-factors = { path = "../factors" }
14+
spin-resource-table = { path = "../table" }
1415
spin-world = { path = "../world" }
15-
table = { path = "../table" }
1616
tokio = { workspace = true, features = ["rt-multi-thread"] }
1717
tokio-postgres = "0.7"
1818
tracing = { workspace = true }

crates/factor-outbound-pg/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl<C> OutboundPgFactor<C> {
6363

6464
pub struct InstanceState<C> {
6565
allowed_hosts: OutboundAllowedHosts,
66-
connections: table::Table<C>,
66+
connections: spin_resource_table::Table<C>,
6767
}
6868

6969
impl<C: Send + 'static> SelfInstanceBuilder for InstanceState<C> {}

crates/factor-outbound-redis/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ redis = { version = "0.25", features = ["tokio-comp", "tokio-native-tls-comp", "
1010
spin-core = { path = "../core" }
1111
spin-factor-outbound-networking = { path = "../factor-outbound-networking" }
1212
spin-factors = { path = "../factors" }
13+
spin-resource-table = { path = "../table" }
1314
spin-world = { path = "../world" }
14-
table = { path = "../table" }
1515
tracing = { workspace = true }
1616

1717
[dev-dependencies]

0 commit comments

Comments
 (0)