Skip to content

Commit

Permalink
Fixed typetag doc building
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Sep 6, 2021
1 parent 6822c8e commit 76e00c5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lib/wasi-experimental-io-devices/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ minifb = "0.19"
ref_thread_local = "0.1"
serde = "1"
typetag = "0.1"

[features]
enable-serde = [
"wasmer-wasi/enable-serde"
]
2 changes: 1 addition & 1 deletion lib/wasi-experimental-io-devices/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ impl Write for FrameBuffer {
}
}

#[typetag::serde]
#[cfg_attr(feature = "enable-serde", typetag::serde)]
impl VirtualFile for FrameBuffer {
fn last_accessed(&self) -> u64 {
0
Expand Down
7 changes: 6 additions & 1 deletion lib/wasi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,9 @@ disable-all-logging = [
"tracing/release_max_level_off",
"tracing/max_level_off"
]
enable-serde = ["typetag", "serde", "bincode"]
enable-serde = [
"typetag",
"serde",
"bincode",
"wasmer-vfs/enable-serde"
]

0 comments on commit 76e00c5

Please sign in to comment.