File tree 5 files changed +14
-41
lines changed
5 files changed +14
-41
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,5 @@ members = [
3
3
" msfs" ,
4
4
" msfs_sdk" ,
5
5
" msfs_derive" ,
6
- " msfs_fix" ,
7
6
]
8
7
exclude = [" examples" ]
Original file line number Diff line number Diff line change 1
1
[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
+ ]
Original file line number Diff line number Diff line change 12
12
//!
13
13
//! ## Known Issues and Work-Arounds
14
14
//!
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
+ //! ]
21
24
//! ```
22
25
23
26
pub mod msfs;
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments