Skip to content

Commit f0658ce

Browse files
committed
sync with main
Signed-off-by: Aminu Oluwaseun Joshua <[email protected]>
1 parent 7501996 commit f0658ce

File tree

10 files changed

+8
-70
lines changed

10 files changed

+8
-70
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ spin-templates = { path = "crates/templates" }
7171
spin-trigger = { path = "crates/trigger" }
7272
spin-trigger-http = { path = "crates/trigger-http" }
7373
spin-trigger-redis = { path = "crates/trigger-redis" }
74-
spin-variables = { path = "crates/variables" }
7574
terminal = { path = "crates/terminal" }
7675

7776
[target.'cfg(target_os = "linux")'.dependencies]

crates/loader/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ spin-locked-app = { path = "../locked-app" }
2121
spin-manifest = { path = "../manifest" }
2222
spin-outbound-networking-config = { path = "../outbound-networking-config" }
2323
spin-serde = { path = "../serde" }
24-
spin-variables = { path = "../variables" }
2524
tempfile = { workspace = true }
2625
terminal = { path = "../terminal" }
2726
tokio = { workspace = true }

crates/runtime-config/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ spin-key-value-aws = { path = "../key-value-aws" }
2929
spin-key-value-azure = { path = "../key-value-azure" }
3030
spin-key-value-redis = { path = "../key-value-redis" }
3131
spin-key-value-spin = { path = "../key-value-spin" }
32+
spin-locked-app = { path = "../locked-app" }
3233
spin-sqlite = { path = "../sqlite" }
3334
spin-trigger = { path = "../trigger" }
3435
spin-variables-azure = { path = "../variables-azure" }

crates/runtime-config/src/variables.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
//! The runtime configuration for the variables factor used in the Spin CLI.
22
3-
mod azure_key_vault;
4-
mod env;
5-
mod statik;
6-
mod vault;
7-
83
use std::path::PathBuf;
94

10-
pub use azure_key_vault::*;
11-
pub use env::*;
125
use spin_common::{env::env_key, ui::quoted_path};
136
use spin_locked_app::Variable;
14-
pub use statik::*;
15-
pub use vault::*;
167

178
use serde::Deserialize;
189
use spin_expressions::Provider;

crates/runtime-factors/src/build.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ use anyhow::Context as _;
66
use spin_factors_executor::FactorsExecutor;
77
use spin_runtime_config::ResolvedRuntimeConfig;
88
use spin_trigger::cli::{
9-
EnvVariableHook, FactorsConfig, InitialKvSetterHook, KeyValueDefaultStoreSummaryHook,
10-
MaxInstanceMemoryHook, RuntimeFactorsBuilder, SqlStatementExecutorHook,
11-
SqliteDefaultStoreSummaryHook, StdioLoggingExecutorHooks,
9+
FactorsConfig, InitialKvSetterHook, KeyValueDefaultStoreSummaryHook, MaxInstanceMemoryHook,
10+
RuntimeFactorsBuilder, SqlStatementExecutorHook, SqliteDefaultStoreSummaryHook,
11+
StdioLoggingExecutorHooks,
1212
};
1313
use spin_variables_static::StaticVariablesProvider;
1414

@@ -72,9 +72,6 @@ impl RuntimeFactorsBuilder for FactorsBuilder {
7272
executor.add_hooks(InitialKvSetterHook::new(args.key_values.clone()));
7373
executor.add_hooks(SqliteDefaultStoreSummaryHook);
7474
executor.add_hooks(KeyValueDefaultStoreSummaryHook);
75-
executor.add_hooks(VariableSorterExecutorHooks::new(
76-
runtime_config.toml.clone(),
77-
));
7875

7976
let max_instance_memory = args
8077
.max_instance_memory

crates/trigger/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ spin-factor-wasi = { path = "../factor-wasi" }
3232
spin-factors = { path = "../factors" }
3333
spin-factors-executor = { path = "../factors-executor" }
3434
spin-telemetry = { path = "../telemetry" }
35-
spin-variables = { path = "../variables" }
3635
tokio = { workspace = true, features = ["fs", "rt"] }
37-
toml = { workspace = true }
3836
tracing = { workspace = true }
3937

4038
[dev-dependencies]

crates/trigger/src/cli.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ mod max_instance_memory;
44
mod sqlite_statements;
55
mod stdio;
66
mod summary;
7-
mod variables;
87

98
use std::path::PathBuf;
109
use std::{future::Future, sync::Arc};
@@ -26,7 +25,6 @@ pub use sqlite_statements::SqlStatementExecutorHook;
2625
use stdio::FollowComponents;
2726
pub use stdio::StdioLoggingExecutorHooks;
2827
pub use summary::{KeyValueDefaultStoreSummaryHook, SqliteDefaultStoreSummaryHook};
29-
pub use variables::VariableSorterExecutorHooks;
3028

3129
pub const APP_LOG_DIR: &str = "APP_LOG_DIR";
3230
pub const SPIN_TRUNCATE_LOGS: &str = "SPIN_TRUNCATE_LOGS";

crates/trigger/src/cli/variables.rs

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

crates/variables-env/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ rust-version.workspace = true
1111
[dependencies]
1212
dotenvy = "0.15"
1313
serde = { workspace = true }
14+
spin-common = { path = "../common" }
1415
spin-expressions = { path = "../expressions" }
1516
spin-factors = { path = "../factors" }
1617
spin-world = { path = "../world" }

0 commit comments

Comments
 (0)