diff --git a/crates/ruma-common/Cargo.toml b/crates/ruma-common/Cargo.toml index 53cc55a5..01576858 100644 --- a/crates/ruma-common/Cargo.toml +++ b/crates/ruma-common/Cargo.toml @@ -23,7 +23,8 @@ server = [] api = ["http", "thiserror"] compat = ["ruma-macros/compat", "ruma-identifiers-validation/compat"] events = ["indoc", "thiserror"] -js = ["js-sys"] +# TODO: Use weak dependency features once MSRV >= 1.60 +js = ["js-sys", "getrandom/js", "uuid/js"] markdown = ["pulldown-cmark"] rand = ["rand_crate", "uuid"] unstable-exhaustive-types = [] @@ -48,6 +49,7 @@ base64 = "0.13.0" bytes = "1.0.1" criterion = { version = "0.3.3", optional = true } form_urlencoded = "1.0.0" +getrandom = { version = "0.2.6", optional = true } http = { version = "0.2.2", optional = true } indexmap = { version = "1.6.2", features = ["serde-1"] } indoc = { version = "1.0", optional = true }