old-storyai / tracing-wasm Goto Github PK
View Code? Open in Web Editor NEW`tracing` crate compatible `Subscriber` for reporting spans through browser `window.performance`
License: Apache License 2.0
`tracing` crate compatible `Subscriber` for reporting spans through browser `window.performance`
License: Apache License 2.0
I would like the debug output to show timestamps just like the tracing logger on my server.
Example output from the server:
Sep 29 02:03:01.290 DEBUG server: Tracing initialized.
Sep 29 02:03:01.302 INFO server::server: Starting Server
Sep 29 02:03:07.758 DEBUG server::server: Websocket connection request
Sep 29 02:03:07.763 DEBUG server::server::websocket::connections: Opening Websocket connection 0
Current output by the wasm module (in the browser console):
DEBUG src/client/mod.rs:33
Tracing initialized. package.js:406
DEBUG src/client/mod.rs:45
Host: localhost:8000 package.js:406
DEBUG src/client/mod.rs:73
Root update package.js:406
DEBUG src/client/websocket.rs:91
Root update package.js:406
DEBUG src/client/websocket.rs:94
WebSocket opened package.js:406
DEBUG src/client/chart.rs:60
Subscriber received message
Something like this would be desirable:
Sep 29 02:03:06.612 DEBUG src/client/mod.rs:33
Tracing initialized. package.js:406
...
I would like a way to remove the source file from the output in the console. While helpful for debugging, showing the full path and source file in production potentially opens you up to Full Path Disclosure vulnerabilities.
One way to do this would be to allow broader control over formatting in general like suggested in #13. Another would be a simple bool
toggle inside the WASMLayerConfig
.
I'll be raising a PR shortly doing the second implementation, since it's a lot easier ๐
Hey! Thanks for building an awesome crate. We'd like to consume this in Bevy Engine, but the currently published crate doesn't have configurable log levels (at least from what I can tell). The master branch appears to have this feature. Would you be willing to cut a new release?
I am running trunk serve
on https://github.com/emilk/eframe_template on Apple M1, and I see:
Compiling web-sys v0.3.59
Compiling wasm-bindgen-futures v0.4.32
Compiling tracing-wasm v0.2.1
Compiling emath v0.19.0
Compiling ron v0.8.0
error: linking with `rust-lld` failed: exit status: 1
|
= note: "rust-lld" "-flavor" "wasm" "--rsp-quoting=posix" "--export" "__wbindgen_describe___wbg_log_02e20a3c32305fb7" "--export" "__wbindgen_describe___wbg_log_5c7513aa8c164502" "--export" "__wbindgen_describe___wbg_log_944a2253906cc04f" "--export" "__wbindgen_describe___wbg_log_9f01e2baa8742293" "--export" "__wbindgen_describe___wbg_mark_abc7631bdced64f0" "--export" "__wbindgen_describe___wbg_measure_c528ff64085b7146" "--export" "__externref_drop_slice" "--export" "__externref_heap_live_count" "--export" "__externref_table_alloc" "--export" "__externref_table_dealloc" "--export" "__wbindgen_exn_store" "--export" "__wbindgen_free" "--export" "__wbindgen_malloc" "--export" "__wbindgen_realloc" "--export=__heap_base" "--export=__data_end" "-z" "stack-size=1048576" "--stack-first" "--allow-undefined" "--fatal-warnings" "--no-demangle" "--no-entry" "--export-dynamic" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.0.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.1.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.10.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.11.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.12.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.13.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.14.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.15.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.2.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.3.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.4.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.5.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.6.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.7.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.8.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.tracing_wasm.a2341e97-cgu.9.rcgu.o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.33emkghic0x4u5ds.rcgu.o" "-L" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps" "-L" "/Users/alvarozamora/site/target/debug/deps" "-L" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/libwasm_bindgen-7381d90e69dfdc8d.rlib" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/libtracing_subscriber-fdd614a5d7fa6eb6.rlib" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/libthread_local-7bcd2b0078c0e51f.rlib" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/libsharded_slab-429288038bbbb0b2.rlib" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/liblazy_static-066ad0656a44cc96.rlib" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/libtracing-9e4cca10b848066a.rlib" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/libcfg_if-58b9d426f806ffd6.rlib" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/libpin_project_lite-f9e39787deda2239.rlib" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/libtracing_core-80d3d1745941828c.rlib" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/libonce_cell-a102fc9aea60d6b5.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libstd-6e4506c3bd4e06a6.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libpanic_abort-50ac03b727648902.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libdlmalloc-158cb6a12317ab51.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/librustc_demangle-bdf1206d3f8ae6ef.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libstd_detect-397d76d8bd3f3d7e.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libhashbrown-959ca68b71c716c5.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libminiz_oxide-ad68ab0ba60287e9.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libadler-9507aab8973c69a2.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/librustc_std_workspace_alloc-2b254a2ed0d53204.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libunwind-43d8b49759ddb512.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libcfg_if-44d429d5b4e07ccb.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/liblibc-f12e412d1fc09ff8.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/liballoc-8c154691168d0cf2.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/librustc_std_workspace_core-ec4bdf0d7fe4b487.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libcore-011f61430b3e691f.rlib" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-8f04c8042c958fbc.rlib" "-L" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib" "-L" "/Users/alvarozamora/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/self-contained" "-o" "/Users/alvarozamora/site/target/wasm32-unknown-unknown/debug/deps/tracing_wasm-de3c7e6ece2dba72.wasm" "--gc-sections" "--no-entry" "-O2" "-Wl,-undefined,dynamic_lookup"
= note: rust-lld: error: unknown argument: -Wl,-undefined,dynamic_lookup
error: could not compile `tracing-wasm` due to previous error
warning: build failed, waiting for other jobs to finish...
2022-11-08T00:47:03.146144Z ERROR โ error
error from HTML pipeline
Caused by:
0: error from asset pipeline
1: error during cargo build execution
2: cargo call returned a bad status
2022-11-08T00:47:03.151156Z INFO ๐ก serving static assets at -> /
2022-11-08T00:47:03.151520Z INFO ๐ก server listening at http://127.0.0.1:8080
I get a compilation error with rust-lld: error: unknown argument: -Wl,-undefined,dynamic_lookup
Thanks for making tracing-wasm
!
Would it be possible to something to the README
about the scope of the project? Currently, it says "Leverage performance profiling with your browser tools with the tracing crate", but the library name implies something broader.
Specifically:
wasm
is valid? (e.g. node, deno, limited environments like cloudflare workers)tracing_subscriber::fmt
for log lines, or just focus on performance timings?Thank you!
My whole program is 33 KB after compilation, but after adding this crate, it becomes 130 KB
before
-rw-r--r-- 1 axetroy staff 33K 5 14 16:31 wasm_hasher_sha1_bg.wasm
after
-rw-r--r-- 1 axetroy staff 128K 5 14 16:34 wasm_hasher_sha1_bg.wasm
I think it is acceptable to increase within 10KB, but why increase so much
Here is my Cargo.toml
[package]
name = "wasm-hasher-sha1"
version = "0.1.2"
authors = ["Axetroy <[email protected]>"]
edition = "2021"
repository = "https://github.com/axetroy/wasm-hasher"
readme = "README.md"
description = "computed data hash by webAssembly"
license = "Anti-996"
keywords = ["sha1", "wasm", "webassembly"]
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["start", "wee_alloc"]
start = ["console_error_panic_hook", "tracing-wasm"]
[dependencies]
console_error_panic_hook = { version = "0.1.7", optional = true}
tracing-wasm = { version = "0.2.1", optional = true }
# The `wasm-bindgen` crate provides the bare minimum functionality needed
# to interact with JavaScript.
wasm-bindgen = "0.2.85"
sha1 = "0.10.5"
js-sys = "0.3.62"
digest = "0.10.6"
wasm-bindgen-futures = "0.4.35"
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
# compared to the default allocator's ~10K. However, it is slower than the default
# allocator, so it's not enabled by default.
wee_alloc = { version = "0.4.2", optional = true }
wasm-hasher-lib = { path = "../lib" }
# The `web-sys` crate allows you to interact with the various browser APIs,
# like the DOM.
[dependencies.web-sys]
version = "0.3.61"
features = ["console", "FileReader", "Blob", "AbortSignal"]
# These crates are used for running unit tests.
[dev-dependencies]
wasm-bindgen-test = "0.2.45"
futures = "0.1.27"
js-sys = "0.3.62"
The use case I have is pretty-printing wasm_bindgen::JsValue
s. Right now I always make a string by walking the object tree and passing that to tracing. If tokio-rs/tracing#905 were to happen, I think this crate could define an interface to pass nested values directly through to the backend without needing to teach the Value
trait about all of the details of the APIs.
I'm not sure exactly what that would look like but I thought I'd gauge interest.
I couldn't find any documentation or information on how to set the maximum tracing level.
It would be nice to be able to set it when building package or when using it, however, I'm not sure how this could be passed to wasm.
I've tried using RUST_LOG
(tracing-subscriber = { version = "0.3", features = ["env-filter"] }
) but it doesn't seem to do anything for the package itself when using it with wasm-pack
(only sets verbosity of wasm-pack itself).
I have an issue with your library because the logs are reported using a Layer
which bypasses the FormatEvent
of tracing_subscriber
.
In my use case I have made my own FormatEvent which I use in place of the default one provided by tracing-subscriber. This allows me to customize the log lines.
๐ค I don't know if I have a solution for this... FormatEvent
is using a Writer
to write the log lines (which is provided by the user). Maybe it would be possible to spawn a task that would read the log lines from a Reader
and call the log()
function from there but logging in the browser console is kinda complicated because there are log arguments to change the colors and stuff... I would probably need to serialize things.
I like the look of this, but I'm unsure how to get it working with a yew
site run with trunk
.
src/main.rs
#[function_component(App)]
fn app() -> Html {
html! {
<>
<div class="container">
<h1>{"Basic Yew Web App"}</h1>
</div>
</>
}
}
fn main() {
//wasm_logger::init(wasm_logger::Config::default());
tracing_wasm::set_as_global_default();
tracing::debug!("App is starting"); // this appears in the console
tracing::info_span!("we got so far"); // I'm expecting to see something in the Performance inspector.
yew::start_app::<App>();
}
Cargo.toml
[package]
name = "website-yew"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
tracing = "0.1.36"
tracing-wasm = "0.2.1"
yew = "0.19.3"
yew-router = "0.16.0"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Yew basic Single Page App</title>
</head>
<body>
</body>
</html>
Run from the repo root with trunk serve
.
The log levels are being logged with a background of #444
. This looks rather ugly when using a light background. Fixing this would require adjusting the foreground colors too, but that doesn't sound like a problem.
From a empty project and adding tracing-wasm
as a dependency. Building with cargo build --target wasm32-unknown-emscripten
fails due to the following error:
= note: error: undefined symbol: main/__main_argc_argv (referenced by top-level compiled C/C++ code)
warning: Link with `-sLLD_REPORT_UNDEFINED` to get more information on undefined symbols
warning: To disable errors for undefined symbols use `-sERROR_ON_UNDEFINED_SYMBOLS=0`
warning: _main may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
warning: To build in STANDALONE_WASM mode without a main(), use emcc --no-entry
Error: Aborting compilation due to previous errors
emcc: error: '/usr/bin/node /usr/lib/emscripten/src/compiler.js /tmp/tmpxlhf40bq.json' failed (returned 1)
Right now this crate logs everything through console.log
. This means I can't do any browser filtering of events. It would be really nice if it could use console.info
, console.warn
, console.error
, and console.debug
as appropriate. This would give me better filtering control and also better styling.
This adds a lot of dependencies, even for non-wasm targets. For https://github.com/linebender/druid this seems to be around ~24 added deps.
Couldn't find how to add a layer like I do with regular tracing crate.
By default, tracing-subscriber shows span information in log events. I am using tracing in a library, so I'm trying to figure out how best to annotate things. I call user supplied code, so I don't necessarily get to put structured data directly on the log events, so a span seemed to be a good way to add information. However, if it doesn't get shown that doesn't work. I personally prefer putting the span information after the message, as it seems more optional.
I suppose fixing #13 would also fix this in a more general but less default way.
error: linking with `rust-lld` failed: exit code: 1
|
= note: "rust-lld" "-flavor" "wasm" "--rsp-quoting=posix" "-z" "stack-size=1048576" "--stack-first" "--allow-undefined" "--fatal-warnings" "--no-demangle" "--export-dynamic" "--no-entry" "-L" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib" "-L" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib\\self-contained" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.12ei0olmmbz33uqk.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.17d0nhxafpb8pbvm.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.19qbo3jwyofr3ouf.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.1tc5bf16zwb088os.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.1wmzvvfg4jbw263h.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.1zj2x3tyj82mwlv3.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.272rb6l65lotuk32.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.293ge3umqwjhxnck.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.2byt2c740ih1mw3.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.2mlpflfyvvb7o90t.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.2s6rlcliu9w8br77.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.2w70rdnorvl1ec1r.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.36y0kdz23x3i4qbw.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.3bpzsrslgfbkqlx2.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.3gujw3i2c1ynyax3.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.3h6zmvqg6ta2pkh.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.3iq8e4qdfdleda0l.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.3ohnyh7ufzakc8la.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.3ps462mymgf1bq5j.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.3r5c734x0a3gp5wu.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.3w7hoyzfgb528y2v.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.3y4gdvrntw4e22r1.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.3yyav3nslr0udj59.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.4299rd64kk4yry4f.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.42ijsclewowmkrrv.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.45jd5wutteffh8g1.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.4ar9lfpd2awknpgb.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.4g4aoos20w4094jr.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.4hd5tn7jwprgv0aj.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.4rsp57imzlncbzfk.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.4thklspt6506q3ow.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.57xvx4sf2lvscfjg.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.5gftbbpc22hsnqur.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.81lw8suoxei32qc.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.cbbs9cdlqeb2yvr.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.f3vc4f3hdbeefdp.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.foxmcv74cl4lf3j.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.qw2ro6fx9iw4lfa.rcgu.o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.rxgc0cpa3emqohs.rcgu.o" "-o" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.wasm" "--export" "__wbindgen_describe___wbg_log_187aba59bc7b0487" "--export" "__wbindgen_describe___wbg_log_75fc43480a5907a7" "--export" "__wbindgen_describe___wbg_log_7a95dfca1e50ab5d" "--export" "__wbindgen_describe___wbg_log_a73f6bdd88fae982" "--export" "__wbindgen_describe___wbg_mark_e32edf3b52687c6a" "--export" "__wbindgen_describe___wbg_measure_0c2a5c5e55e16643" "--export" "__externref_drop_slice" "--export" "__externref_heap_live_count" "--export" "__externref_table_alloc" "--export" "__externref_table_dealloc" "--export" "__wbindgen_exn_store" "--export" "__wbindgen_free" "--export" "__wbindgen_malloc" "--export" "__wbindgen_realloc" "--export=__heap_base" "--export=__data_end" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\tracing_wasm.32dfwser33xd4xis.rcgu.o" "--gc-sections" "--no-entry" "-O0" "-L" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps" "-L" "D:\\Programming\\tracing-wasm\\target\\debug\\deps" "-L" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libwasm_bindgen-5cd2b1f277a19688.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libtracing_subscriber-d9972ed959a79eae.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libchrono-65dc105e98c5d955.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libnum_integer-1d4775ef9e63e5de.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libnum_traits-87182d67a0b6451e.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libtime-9be824b32d088f95.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libsmallvec-00ee9ae06a8bca3c.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libsharded_slab-a6dc639f35e4bceb.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libtracing_serde-71b5d2d30e316ecc.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libserde_json-9b1f0d1f5d78ad49.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libryu-40105862f9c24718.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libitoa-b67d8b47fa5c00f2.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libserde-aa233f72a4d92bb4.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libansi_term-a7b7a1de5fcd7020.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libtracing_log-8fa39db3a3b72dc4.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\liblog-53aae6ce06e27fab.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libmatchers-e3e41a4dc9c925b3.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libregex_automata-4c776805bb3f360d.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libbyteorder-5aed7225f8c2ff9d.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libregex-90d7bd7b2a1944e3.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libthread_local-d23595de072bd33d.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libregex_syntax-0fa6a12995e6ee66.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libaho_corasick-321ea40da3669bf4.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libmemchr-e4f498071f1ded54.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libtracing-c208963e705f2ea8.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libtracing_core-d689b07588b262cd.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\liblazy_static-e46bcd4751db13e3.rlib" "D:\\Programming\\tracing-wasm\\target\\wasm32-unknown-unknown\\debug\\deps\\libcfg_if-12835fd523ba88c0.rlib" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib\\libstd-9e4598c44cac13ff.rlib" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib\\libpanic_abort-77c643bb30f477bc.rlib" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib\\libdlmalloc-9eb209e7ba887408.rlib" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib\\librustc_demangle-cc47b1204b10eaf4.rlib" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib\\libhashbrown-3813affb8b5de0db.rlib" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib\\librustc_std_workspace_alloc-a4aac3585d4b3a36.rlib" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib\\libunwind-8b3e01e3bb0265fc.rlib" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib\\libcfg_if-ab6a8186bc9fa9b3.rlib" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib\\liblibc-6d7322ef43be4700.rlib" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib\\liballoc-e80906912b04c188.rlib" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib\\librustc_std_workspace_core-bfe89f587d3bf9f7.rlib" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib\\libcore-c83074681f2b006a.rlib" "C:\\Users\\mvlabat\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\wasm32-unknown-unknown\\lib\\libcompiler_builtins-4287282125abddf2.rlib" "-fuse-ld=lld-link"
= note: rust-lld: error: unknown argument: -fuse-ld=lld-link
error: aborting due to previous error
error: could not compile `tracing-wasm`
My rustc
version is 1.50.0-nightly (c919f490b 2020-11-17)
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.