Cargo Features

virtual-fs = { version = "0.15.0", default-features = false, features = ["host-fs", "webc-fs", "static-fs", "enable-serde", "no-time", "tracking"] }
default = host-fs, static-fs, webc-fs

These default features are set whenever virtual-fs is added without default-features = false somewhere in the dependency tree.

host-fs default = filetime, fs_extra, libc

Enables fs, io-std and rt of tokio

Affects virtual-fs::host_fs

webc-fs default = anyhow, webc
static-fs default = anyhow, webc

Affects virtual-fs::static_fs

enable-serde = serde, typetag

Enables memory tracking/limiting functionality for the in-memory filesystem.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

anyhow static-fs webc-fs
filetime host-fs
fs_extra host-fs
libc host-fs
typetag enable-serde?

Enables typetag ^0.1

webc static-fs webc-fs
serde enable-serde?