Skip to content

Commit bed2d96

Browse files
committed
Rename from "wasi-core" to "wasi", and update README.md.
1 parent 481c779 commit bed2d96

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[package]
2-
name = "wasi-core"
3-
version = "0.2.0"
2+
name = "wasi"
3+
version = "0.3.0"
44
authors = ["The Cranelift Project Developers"]
55
license = "Apache-2.0 WITH LLVM-exception"
66
description = "Experimental WASI API bindings for Rust"
77
edition = "2018"
88
categories = ["no-std", "wasm"]
99
keywords = ["webassembly", "wasm"]
10-
repository = "https://github.com/CraneStation/wasi-core"
10+
repository = "https://github.com/CraneStation/rust-wasi"
1111
readme = "README.md"
12-
documentation = "https://docs.rs/wasi-core"
12+
documentation = "https://docs.rs/wasi"
1313

1414
[dependencies]
1515

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# wasi-core
1+
# WASI API Bindings for Rust
22

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

1111
- `wasi_unstable`, which provides thin wrappers around the raw functions
1212
which use idiomatic Rust types rather than raw pointers, and are safe.
13+
14+
This crate is quite low-level and provides conceptually a "system call"
15+
interface. In most settings, it's better to use the Rust standard library,
16+
which has WASI support.
17+
18+
To compile Rust projects to wasm using WASI, use the `wasm32-wasi` target,
19+
like this:
20+
21+
```
22+
rustup target add wasm32-wasi
23+
cargo build --target wasm32-wasi
24+
```

0 commit comments

Comments
 (0)