aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/lib.rs
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2024-05-28 00:28:39 +0800
committer简律纯 <i@jyunko.cn>2024-05-28 00:28:39 +0800
commit28a7b2ecd90e7e67427682a99b8616e13042b4ab (patch)
treeb97c4784f5b27963aafde21701a135934fef6f5d /src/lib.rs
parent2c8f4880eb6ddd0040c20e264dac1aebb018a8b2 (diff)
downloadHydroRollCore-28a7b2ecd90e7e67427682a99b8616e13042b4ab.tar.gz
HydroRollCore-28a7b2ecd90e7e67427682a99b8616e13042b4ab.zip
chore: refresh source tree files
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9821bf0..213d20e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -8,7 +8,8 @@ fn sum_as_string(a: usize, b: usize) -> PyResult<String> {
/// A Python module implemented in Rust.
#[pymodule]
+#[pyo3(name = "libcore")]
fn corelib(_py: Python, m: &PyModule) -> PyResult<()> {
m.add_function(wrap_pyfunction!(sum_as_string, m)?)?;
Ok(())
-}
+} \ No newline at end of file