File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
examples/namespace_package Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,18 @@ version = "0.1.0"
44edition = " 2018"
55
66[lib ]
7+ # When omitted, the name field will be assumed to have the same value as package.name
8+ # https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-name-field
79crate-type = [" cdylib" , " rlib" ]
10+ path = " rust/lib.rs" # When omitted, the value of "src/lib.rs" is assumed
11+ # See https://doc.rust-lang.org/cargo/reference/cargo-targets.html#library
12+ #
13+ # If [lib] is not specified, but the file ``src/lib.rs`` exists,
14+ # you can also rely on an implicit definition which will behave similarly to:
15+ #
16+ # [lib]
17+ # name = <package.name>
18+ # path = "src/lib.rs"
819
920[dependencies ]
1021pyo3 = { version = " 0.19.2" , features = [" extension-module" ] }
Original file line number Diff line number Diff line change 11include Cargo.toml
2- recursive-include src *
2+ recursive-include rust *
33recursive-include python *
File renamed without changes.
You can’t perform that action at this time.
0 commit comments