Skip to content

Commit

Permalink
Merge pull request WebAssembly#1 from CraneStation/update
Browse files Browse the repository at this point in the history
Fill out more implementations, rename to "wasi"
  • Loading branch information
sunfishcode authored Jul 22, 2019
2 parents 250dc07 + bed2d96 commit 4c317ae
Show file tree
Hide file tree
Showing 5 changed files with 424 additions and 35 deletions.
9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
[package]
name = "wasi-core"
version = "0.2.0"
name = "wasi"
version = "0.3.0"
authors = ["The Cranelift Project Developers"]
license = "Apache-2.0 WITH LLVM-exception"
description = "Experimental WASI API bindings for Rust"
edition = "2018"
repository = "https://github.com/CraneStation/wasi-core"
categories = ["no-std", "wasm"]
keywords = ["webassembly", "wasm"]
repository = "https://github.com/CraneStation/rust-wasi"
readme = "README.md"
documentation = "https://docs.rs/wasi"

[dependencies]

Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# wasi-core
# WASI API Bindings for Rust

This package contains experimental [WASI](https://github.com/WebAssembly/WASI)
API bindings in Rust.
Expand All @@ -10,3 +10,15 @@ There are two modules:

- `wasi_unstable`, which provides thin wrappers around the raw functions
which use idiomatic Rust types rather than raw pointers, and are safe.

This crate is quite low-level and provides conceptually a "system call"
interface. In most settings, it's better to use the Rust standard library,
which has WASI support.

To compile Rust projects to wasm using WASI, use the `wasm32-wasi` target,
like this:

```
rustup target add wasm32-wasi
cargo build --target wasm32-wasi
```
15 changes: 15 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
#![cfg_attr(
feature = "cargo-clippy",
warn(
clippy::float_arithmetic,
clippy::mut_mut,
clippy::nonminimal_bool,
clippy::option_map_unwrap_or,
clippy::option_map_unwrap_or_else,
clippy::print_stdout,
clippy::unicode_not_nfc,
clippy::use_self
)
)]
#![no_std]

pub mod wasi_unstable;
Loading

0 comments on commit 4c317ae

Please sign in to comment.