File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
examples/namespace_package Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,18 @@ version = "0.1.0"
4
4
edition = " 2018"
5
5
6
6
[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
7
9
crate-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"
8
19
9
20
[dependencies ]
10
21
pyo3 = { version = " 0.19.2" , features = [" extension-module" ] }
File renamed without changes.
You can’t perform that action at this time.
0 commit comments