Skip to content

Releases: deislabs/spiderlightning

v0.5.1

02 Jun 19:31
2fc0beb
Compare
Choose a tag to compare
v0.5.1 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v0.5.0...v0.5.1

v0.5.0

03 May 02:06
bbb1417
Compare
Choose a tag to compare
v0.5.0 Pre-release
Pre-release

What's Changed

  • tests: Re-enable AWS integration tests by @Mossaka in #360
  • Chore: bump wasmtime to 7.0.0 by @Mossaka in #373
  • feat(blob-store): Add wasi-blob-store capability by @Mossaka in #361
  • test: added a messaging integration test by @Mossaka in #283
  • refactor(slightfile): move slightfile logic to its own crate by @Mossaka in #375
  • feat(slightfile): implement wildcard namespace for resources by @Mossaka in #376
  • new logo for SpiderLightning by @danbugs in #387
  • CI: Update Windows CI to the correct openssl path by @Mossaka in #392
  • Fixed clippy issue by @Mossaka in #393
  • added cli option to link all caps needed for dynamic langs by @danbugs in #386
  • fixed typo in slightfile of nats messaging example by @danbugs in #389
  • fix: change receive to receive with a timeout by @Mossaka in #385
  • fix: remove tempdir crate and replace it with tempfile by @Mossaka in #394
  • fix(messaging): fixed a bug in subscribe function and moved filesystem implementation in house by @Mossaka in #388
  • chore: bump to 0.5.0 by @Mossaka in #384
  • http client requests can now have a body by @danbugs in #390
  • merging slightJS upstream by @danbugs in #395
  • added command to download js template by @danbugs in #396
  • added JS docs, and fixed build command by @danbugs in #397
  • update docs && fix && fmt by @danbugs in #398

Full Changelog: v0.4.1...v0.5.0

v0.4.1

17 Mar 17:57
f0b3a52
Compare
Choose a tag to compare
v0.4.1 Pre-release
Pre-release

What's Changed

Full Changelog: v0.4.0...v0.4.1

v0.4.0

16 Mar 23:30
bc857ab
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release

Announcing slight v0.4.0, which includes several new features and improvements.

New Features:

  • NATS is now available as a new service for the messaging capability. This feature was added by @danbugs in pull request #354.

Breaking Change:

The http-server capability now builds on WASI Reactor model. This basically means that the rust program that uses http-server capability will need to be created as a rust library instead of a binary program.

To get started, execute the command: cargo new --lib spidey. This will create a rust library.

The Cargo.toml will then look like

[package]
name = "spidey"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib"]

[dependencies]
anyhow = "1"
# ^^^ Flexible concrete Error type built on std::error::Error
wit-bindgen-rust = { git = "https://github.com/fermyon/wit-bindgen-backport" }
# ^^^ A language binding generator for WebAssembly interface types
wit-error-rs = { git = "https://github.com/danbugs/wit-error-rs", rev = "05362f1a4a3a9dc6a1de39195e06d2d5d6491a5e" }
# ^^^ Convenience error-related trait implementations for types generated from a wit-bindgen import
slight-http-handler-macro = { git = "https://github.com/deislabs/spiderlightning", tag = "v0.4.0" }
# ^^^ Macro for creating http request handlers when using SpiderLightning's http interface
slight-http-server-macro = { git = "https://github.com/deislabs/spiderlightning", tag = "v0.4.0" }

Last, a simply http-server looks like

use anyhow::Result;

use keyvalue::*;
use http_server::*;

use slight_http_handler_macro::register_handler;
use slight_http_server_macro::on_server_init;

wit_bindgen_rust::import!("wit/keyvalue_0.4.0/keyvalue.wit");
wit_bindgen_rust::import!("wit/http-server_0.4.0/http-server.wit");
wit_bindgen_rust::export!("wit/http-server_0.4.0/http-server-export.wit");
wit_error_rs::impl_error!(http_server::HttpRouterError);
wit_error_rs::impl_error!(keyvalue::KeyvalueError);

#[on_server_init]
fn main() -> Result<()> {
    let router = Router::new()?;
    let router_with_route = router.get("/hello", "handle_hello")?;
    let _ = Server::serve("0.0.0.0:3000", &router_with_route)?;
    Ok(())
}

#[register_handler]
fn handle_hello(req: Request) -> Result<Response, HttpError> {
    println!("I just got a request uri: {} method: {}", req.uri, req.method);

    let container = Keyvalue::open("my-container").unwrap();
    let res = container.get("key1");
    let body = match res {
        Ok(value) => value,
        Err(e) => "".as_bytes().to_vec(),
    };

    Ok(Response {
        headers: Some(req.headers),
        body: Some(body),
        status: 200,
    })
}

Improvements:

The handle_run function now accepts io redirect paths, thanks to @devigned's contribution in pull request #342.

We encourage all users to upgrade to this latest version to take advantage of these new features and improvements. Thank you to all of our contributors who made this release possible!

What's Changed

  • added NATS - a new implementor for the messaging capability! by @danbugs in #354
  • enable handle_run to accept io redirect paths by @devigned in #342
  • feat(http-server): Add WASI reactor support to http-server cap by @Mossaka in #359
  • ci: Remove restaurant-backend and updated CI to build examples by @Mossaka in #362
  • made supported capabilities msg more maintaible by @danbugs in #357
  • chore: bump to 0.4.0 by @Mossaka in #363

Full Changelog: v0.3.3...v0.4.0

v0.3.3

07 Mar 19:46
846ec65
Compare
Choose a tag to compare
v0.3.3 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v0.3.2...v0.3.3

v0.3.2

28 Feb 00:07
5ec5324
Compare
Choose a tag to compare
v0.3.2 Pre-release
Pre-release

What's Changed

  • Refactor: Re-structure slight repo by @Mossaka in #325
  • chore: updated http-server example by @Mossaka in #326
  • Chore: bump slight version to 0.4.0 by @Mossaka in #333
  • Refactor: move slight to root path and simplify CLI by @Mossaka in #334
  • Update README's repo structure by @Mossaka in #335
  • Bug: Fixed typos in add command and added integration tests by @Mossaka in #336
  • Lower version to 0.3.2 for a new release by @Mossaka in #338
  • lower templates version to 0.3.2 for a new release by @Mossaka in #339
  • Update templates's cargo.toml by @Mossaka in #340

Full Changelog: v0.3.1...v0.3.2

v0.3.1

22 Feb 02:08
061d7b5
Compare
Choose a tag to compare
v0.3.1 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v0.2.0...v0.3.1

v0.3.0

06 Feb 22:43
d51f3f7
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v0.2.0...v0.3.0

v0.2.0

25 Oct 16:36
3a6486e
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release

What's Changed

Full Changelog: v0.1.0...v0.2.0

v0.1.0

17 Oct 16:09
49c6410
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

This release includes:

  • all SpiderLightning .wit files,
  • templates that generate new projects when running slight new (i.e., c-template, and rust-template), and
  • slight binaries for linux x86_64, windows x86_64, mac amd64, and mac aarch64.