File: lib.rs

package info (click to toggle)
python-setuptools-rust 1.12.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 660 kB
  • sloc: python: 1,815; javascript: 95; sh: 14; makefile: 13
file content (11 lines) | stat: -rw-r--r-- 160 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
use pyo3::prelude::*;

#[pymodule]
mod rust {
    use pyo3::prelude::*;

    #[pyfunction]
    fn rust_func() -> PyResult<u64> {
        return Ok(14);
    }
}