Skip to content

Commit 6a8b646

Browse files
authored
Merge pull request #2759 from fermyon/build-fixs
Build fixes
2 parents 6bbf434 + 4430e5f commit 6a8b646

File tree

14 files changed

+11
-347
lines changed

14 files changed

+11
-347
lines changed

.github/workflows/factors.yml

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

Cargo.lock

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

crates/componentize/src/module_info.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,10 @@ impl ModuleInfo {
7575
/// Returns true if the given module was heuristically probably compiled
7676
/// with wit-bindgen.
7777
pub fn probably_uses_wit_bindgen(&self) -> bool {
78-
if self.bindgen.is_some() {
79-
// Presence of bindgen metadata is a strong signal
80-
true
81-
} else if self.realloc_export.is_some() {
78+
// Presence of bindgen metadata is a strong signal
79+
self.bindgen.is_some() ||
8280
// A canonical ABI realloc export is a decent signal
83-
true
84-
} else {
85-
false
86-
}
81+
self.realloc_export.is_some()
8782
}
8883

8984
/// Returns the wit-bindgen metadata producers processed-by field, if

crates/factor-sqlite/src/runtime_config/spin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl RuntimeConfigResolver {
3030
/// This takes as arguments:
3131
/// * the directory to use as the default location for SQLite databases.
3232
/// Usually this will be the path to the `.spin` state directory. If
33-
/// `None`, the default database will be in-memory.
33+
/// `None`, the default database will be in-memory.
3434
/// * the path to the directory from which relative paths to
3535
/// local SQLite databases are resolved. (this should most likely be the
3636
/// path to the runtime-config file or the current working dir).

crates/factors/Cargo.toml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,5 @@ toml = "0.8"
1515
tracing = { workspace = true }
1616
wasmtime = { workspace = true }
1717

18-
[dev-dependencies]
19-
http = "1.1.0"
20-
http-body-util = "0.1.2"
21-
serde_json = "1.0"
22-
spin-componentize = { path = "../componentize" }
23-
spin-factors-derive = { path = "../factors-derive", features = ["expander"] }
24-
spin-factor-key-value = { path = "../factor-key-value" }
25-
spin-factor-key-value-redis = { path = "../factor-key-value-redis" }
26-
spin-factor-key-value-spin = { path = "../factor-key-value-spin" }
27-
spin-factor-outbound-http = { path = "../factor-outbound-http" }
28-
spin-factor-outbound-networking = { path = "../factor-outbound-networking" }
29-
spin-factor-variables = { path = "../factor-variables" }
30-
spin-factor-wasi = { path = "../factor-wasi" }
31-
spin-loader = { path = "../loader" }
32-
tokio = { version = "1", features = ["macros", "rt", "sync"] }
33-
wasmtime-wasi-http = { workspace = true }
34-
35-
[build-dependencies]
36-
cargo-target-dep = { git = "https://github.com/fermyon/cargo-target-dep", rev = "482f269eceb7b1a7e8fc618bf8c082dd24979cf1" }
37-
3818
[lints]
3919
workspace = true

crates/factors/build.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
1-
use std::path::Path;
2-
3-
use cargo_target_dep::build_target_dep;
4-
51
fn main() {
62
println!("cargo:rerun-if-changed=build.rs");
73
// Enable spin-factors-derive to emit expanded macro output.
84
let out_dir = std::env::var("OUT_DIR").unwrap();
95
println!("cargo:rustc-env=SPIN_FACTORS_DERIVE_EXPAND_DIR={out_dir}");
10-
11-
let root = "tests/smoke-app";
12-
build_target_dep(root, Path::new("tests/smoke-app/smoke_app.wasm"))
13-
.release()
14-
.target("wasm32-wasi")
15-
.build();
16-
println!("cargo:rerun-if-changed={root}/Cargo.toml");
17-
println!("cargo:rerun-if-changed={root}/Cargo.lock");
18-
println!("cargo:rerun-if-changed={root}/src");
196
}

crates/factors/tests/smoke-app/.gitignore

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

crates/factors/tests/smoke-app/Cargo.toml

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

crates/factors/tests/smoke-app/spin.toml

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

crates/factors/tests/smoke-app/src/lib.rs

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

0 commit comments

Comments
 (0)