Cargo.toml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [workspace]
  2. # Here we declare that this is a workspace, containing several crates
  3. # within it.
  4. #
  5. # Please keep this list topologically sorted by dependency relation, so
  6. # that every crate appears _before_ any other crate that depends on it.
  7. members = [
  8. "crates/lox-distributor",
  9. #"crates/lox-library",
  10. "crates/lox-extensions",
  11. "crates/lox-utils",
  12. "crates/lox-wasm",
  13. "crates/rdsys-backend-api",
  14. ]
  15. resolver = "2"
  16. [profile.release]
  17. # By default we'd like to get good performance and a small download size.
  18. # (Assuming xz compression on the binary.)
  19. #
  20. # The biggest win is to run `strip --strip-debug` on the binary after
  21. # generating it, to throw out debugging symbols that we inherited from
  22. # other libraries. Don't do `strip --strip-unused`, though, or you'll
  23. # break backtraces. That saves about 21% download size.
  24. # Using LTO saves a further 14% of download size, and improves performance,
  25. # at the cost of compile time.
  26. lto = true
  27. # Setting codegen-units=1 saves a further 7% download size. It also
  28. # improves performance at the cost of compile time.
  29. codegen-units = 1
  30. # Optimize for size. [Actually this is even smaller than 'z' on rust
  31. # 1.56. It saves about 11% download size over the default value of '3'.]
  32. opt-level = 's'
  33. [profile.quicktest]
  34. # This profile is meant to be a compromise between "release" (which
  35. # takes a long time to build) and "dev" (which can be too slow to actually
  36. # use when connecting over the Tor network).
  37. inherits = "release"
  38. lto = "thin"
  39. codegen-units = 16
  40. opt-level = 2
  41. incremental = true
  42. [patch.crates-io]
  43. spongefish = { path = "../spongefish/spongefish" }
  44. sigma-proofs = { path = "../sigma-proofs" }
  45. sigma-compiler = { path = "../sigma-compiler" }
  46. sigma-compiler-derive = { path = "../sigma-compiler/sigma-compiler-derive" }
  47. sigma-compiler-core = { path = "../sigma-compiler/sigma-compiler-core" }
  48. cmz = { path = "../cmz" }
  49. cmz-core = { path = "../cmz/cmz-core" }
  50. cmz-derive = { path = "../cmz/cmz-derive" }