Skip to content

Commit 4c317ae

Browse files
authored
Merge pull request #1 from CraneStation/update
Fill out more implementations, rename to "wasi"
2 parents 250dc07 + bed2d96 commit 4c317ae

File tree

5 files changed

+424
-35
lines changed

5 files changed

+424
-35
lines changed

Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +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"
8-
repository = "https://github.com/CraneStation/wasi-core"
8+
categories = ["no-std", "wasm"]
9+
keywords = ["webassembly", "wasm"]
10+
repository = "https://github.com/CraneStation/rust-wasi"
911
readme = "README.md"
12+
documentation = "https://docs.rs/wasi"
1013

1114
[dependencies]
1215

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+
```

src/lib.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1+
#![cfg_attr(
2+
feature = "cargo-clippy",
3+
warn(
4+
clippy::float_arithmetic,
5+
clippy::mut_mut,
6+
clippy::nonminimal_bool,
7+
clippy::option_map_unwrap_or,
8+
clippy::option_map_unwrap_or_else,
9+
clippy::print_stdout,
10+
clippy::unicode_not_nfc,
11+
clippy::use_self
12+
)
13+
)]
14+
#![no_std]
15+
116
pub mod wasi_unstable;

0 commit comments

Comments
 (0)