mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 04:51:23 +00:00
Don't use path dependencies in examples
This commit updates all examples to not use `path` dependencies but rather use versioned dependencies like would typically be found in the wild. This should hopefully make the examples more copy-pastable and less alien to onlookers! The development of the examples remains the same where they continue to use the `wasm-bindgen`, `js-sys`, `web-sys`, etc from in-tree. The workspace-level `[patch]` section ensures that they use the in-tree versions instead of the crates.io versions.
This commit is contained in:
@ -9,13 +9,13 @@ crate-type = ["cdylib"]
|
||||
[dependencies]
|
||||
console_error_panic_hook = "0.1"
|
||||
futures = "0.1"
|
||||
js-sys = { path = '../../crates/js-sys' }
|
||||
js-sys = "0.3.4"
|
||||
raytracer = { git = 'https://github.com/alexcrichton/raytracer', branch = 'update-deps' }
|
||||
wasm-bindgen = { path = "../..", features = ['serde-serialize'] }
|
||||
wasm-bindgen-futures = { path = '../../crates/futures' }
|
||||
wasm-bindgen = { version = "0.2.27", features = ['serde-serialize'] }
|
||||
wasm-bindgen-futures = "0.3.4"
|
||||
|
||||
[dependencies.web-sys]
|
||||
path = '../../crates/web-sys'
|
||||
version = "0.3.4"
|
||||
features = [
|
||||
'CanvasRenderingContext2d',
|
||||
'ErrorEvent',
|
||||
|
Reference in New Issue
Block a user