readme: comment about lib.name field

This commit is contained in:
David Hewitt 2022-02-15 07:27:28 +00:00
parent 037a189564
commit f0ecfc241f
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.
#