Merge pull request #2170 from davidhewitt/readme-comment-lib-name

readme: comment about lib.name field
This commit is contained in:
David Hewitt 2022-02-15 08:44:07 +00:00 committed by GitHub
commit 8218b5a3e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ version = "0.1.0"
edition = "2018"
[lib]
# The name of the native library. This is the name which will be used in Python to import the
# library (i.e. `import string_sum`). If you change this, you must also change the name of the
# `#[pymodule]` in `src/lib.rs`.
name = "string_sum"
# "cdylib" is necessary to produce a shared library for Python to import from.
#