Skip to content

Commit a212476

Browse files
committed
remove msfs_fix
1 parent 1a4eee1 commit a212476

File tree

5 files changed

+14
-41
lines changed

5 files changed

+14
-41
lines changed

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ members = [
33
"msfs",
44
"msfs_sdk",
55
"msfs_derive",
6-
"msfs_fix",
76
]
87
exclude = ["examples"]

examples/log/.cargo/config

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
[target.wasm32-wasi]
2-
rustflags = ["-Clink-arg=--export-table"]
2+
rustflags = [
3+
"-Clink-arg=--export-table",
4+
"-Clink-arg=--export=malloc",
5+
"-Clink-arg=--export=free",
6+
]

msfs/src/lib.rs

+9-6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@
1212
//!
1313
//! ## Known Issues and Work-Arounds
1414
//!
15-
//! ### Symbol visibility bug in Rust
16-
//! Until https://github.com/rust-lang/rfcs/issues/2771 is fixed, you will have
17-
//! to run the `msfs-fix` util on your output wasm files, like so:
18-
//! ```shell
19-
//! $ cargo build
20-
//! $ msfs-fix target/wasm32-wasi/release/foo.wasm ./foo.wasm
15+
//! ### Missing various exports
16+
//! Add a .cargo/config.toml file with the following settings:
17+
//! ```toml
18+
//! [target.wasm32-wasi]
19+
//! rustflags = [
20+
//! "-Clink-arg=--export-table",
21+
//! "-Clink-arg=--export=malloc",
22+
//! "-Clink-arg=--export=free",
23+
//! ]
2124
//! ```
2225
2326
pub mod msfs;

msfs_fix/Cargo.toml

-10
This file was deleted.

msfs_fix/src/main.rs

-23
This file was deleted.

0 commit comments

Comments
 (0)