Debian Codegraph @

src/templates/Cargo.toml.j2

raw
1 [package]
2 name = "{{ name }}"
3 version = "0.1.0"
4 edition = "2021"
5
6 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7 {%- if bindings != "bin" %}
8 [lib]
9 name = "{{ crate_name }}"
10 crate-type = ["cdylib"]
11 {%- endif %}
12
13 [dependencies]
14 {% if bindings == "pyo3" -%}
15 pyo3 = "0.25.0"
16 {% elif bindings == "uniffi" -%}
17 uniffi = "0.28.0"
18
19 [build-dependencies]
20 uniffi = { version = "0.28.0", features = ["build"] }
21 {% endif -%}