mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
[tracing] Add convenience macro for function tracing (#36573)
Adds a convenience macro that adds sane defaults to the tracing macro. Closes: #36534 Testing: - Pass in sample test cases and compare against expected behaviour. --------- Signed-off-by: Astraea Quinn Skoutelli <astraea.quinn.skoutelli@huawei.com>
This commit is contained in:
parent
a57ab6deca
commit
b6967fc4c8
7 changed files with 431 additions and 4 deletions
21
components/servo_tracing/Cargo.toml
Normal file
21
components/servo_tracing/Cargo.toml
Normal file
|
@ -0,0 +1,21 @@
|
|||
[package]
|
||||
name = "servo-tracing"
|
||||
edition.workspace = true
|
||||
version.workspace = true
|
||||
authors.workspace = true
|
||||
license.workspace = true
|
||||
publish.workspace = true
|
||||
rust-version.workspace = true
|
||||
|
||||
[dependencies]
|
||||
quote = { workspace = true }
|
||||
proc-macro2 = { workspace = true }
|
||||
syn = { version = "2", features = ["full"] }
|
||||
|
||||
[lib]
|
||||
path = "lib.rs"
|
||||
proc-macro = true
|
||||
doctest = false
|
||||
|
||||
[dev-dependencies]
|
||||
prettyplease = "0.2.32"
|
Loading…
Add table
Add a link
Reference in a new issue