Skip to content

Commit

Permalink
Test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Yordan Madzhunkov committed Jun 20, 2024
1 parent d872714 commit 5fa7311
Show file tree
Hide file tree
Showing 6 changed files with 247 additions and 194 deletions.
46 changes: 46 additions & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ spin-componentize = { workspace = true }
futures = "0.3"

[build-dependencies]
curl = "^0.4"
curl = { version = "^0.4", features = ["rustls"] }
anyhow = "^1"
2 changes: 1 addition & 1 deletion crates/core/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use std::env;
use std::fs;
use std::path::PathBuf;
extern crate curl;
//extern crate curl;

use std::io::Write;
use curl::easy::Easy;
Expand Down
2 changes: 1 addition & 1 deletion crates/core/tests/core-wasi-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
debug = true

[dependencies]
wit-bindgen = "0.13.0"
wit-bindgen = "0.26.0"
image2tensor = "0.3.1"

[workspace]
4 changes: 2 additions & 2 deletions crates/core/tests/hello_component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pub mod hello {
pub struct HelloHostImpl {}

impl gggg2::Host for HelloHostImpl {
fn say_hello(&mut self, x: String) -> wasmtime::Result<String> {
Ok(format!("Hello bace {x}!"))
fn say_hello(&mut self, x: String) -> String {
format!("Hello bace {x}!")
}
}
}
Loading

0 comments on commit 5fa7311

Please sign in to comment.