Cargo.toml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [package]
  2. name = "mytrace"
  3. version = "0.1.0"
  4. edition = "2021"
  5. license.workspace = true
  6. [dependencies]
  7. mytrace-common = { path = "../mytrace-common", features = ["user"] }
  8. anyhow = { workspace = true, default-features = true }
  9. aya = { workspace = true }
  10. aya-log = { workspace = true }
  11. env_logger = { workspace = true }
  12. libc = { workspace = true }
  13. log = { workspace = true }
  14. tokio = { workspace = true, features = [
  15. "macros",
  16. "rt",
  17. "rt-multi-thread",
  18. "net",
  19. "signal",
  20. "time"
  21. ] }
  22. [build-dependencies]
  23. anyhow = { workspace = true }
  24. aya-build = { workspace = true }
  25. # TODO(https://github.com/rust-lang/cargo/issues/12375): this should be an artifact dependency, but
  26. # it's not possible to tell cargo to use `-Z build-std` to build it. We cargo-in-cargo in the build
  27. # script to build this, but we want to teach cargo about the dependecy so that cache invalidation
  28. # works properly.
  29. #
  30. # Note also that https://github.com/rust-lang/cargo/issues/10593 occurs when `target = ...` is added
  31. # to an artifact dependency; it seems possible to work around that by setting `resolver = "1"` in
  32. # Cargo.toml in the workspace root.
  33. #
  34. # Finally note that *any* usage of `artifact = ...` in *any* Cargo.toml in the workspace breaks
  35. # workflows with stable cargo; stable cargo outright refuses to load manifests that use unstable
  36. # features.
  37. mytrace-ebpf = { path = "../mytrace-ebpf" }
  38. [[bin]]
  39. name = "mytrace"
  40. path = "src/main.rs"