Cargo.toml 949 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. [package]
  2. # We name the package `synapse` so that things like logging have the right
  3. # logging target.
  4. name = "synapse"
  5. # dummy version. See pyproject.toml for the Synapse's version number.
  6. version = "0.1.0"
  7. edition = "2021"
  8. rust-version = "1.58.1"
  9. [lib]
  10. name = "synapse"
  11. # We generate a `cdylib` for Python and a standard `lib` for running
  12. # tests/benchmarks.
  13. crate-type = ["lib", "cdylib"]
  14. [package.metadata.maturin]
  15. # This is where we tell maturin where to place the built library.
  16. name = "synapse.synapse_rust"
  17. [dependencies]
  18. anyhow = "1.0.63"
  19. lazy_static = "1.4.0"
  20. log = "0.4.17"
  21. pyo3 = { version = "0.17.1", features = ["macros", "anyhow", "abi3", "abi3-py37"] }
  22. pyo3-log = "0.8.1"
  23. pythonize = "0.17.0"
  24. regex = "1.6.0"
  25. serde = { version = "1.0.144", features = ["derive"] }
  26. serde_json = "1.0.85"
  27. [features]
  28. extension-module = ["pyo3/extension-module"]
  29. default = ["extension-module"]
  30. [build-dependencies]
  31. blake2 = "0.10.4"
  32. hex = "0.4.3"