Skip to content

Commit

Permalink
if we're not symlinking, just use the full ugly name
Browse files Browse the repository at this point in the history
  • Loading branch information
mik90 committed Feb 6, 2025
1 parent ae30878 commit 9678c5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions core/cu29_export/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ repository.workspace = true

# This is a python binding
[lib]
name = "cu29_export"
crate-type = ["cdylib", "rlib"]

[dependencies]
Expand Down
3 changes: 2 additions & 1 deletion core/cu29_export/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ mod python {
}
}

#[pymodule]
/// This needs to match the name of the generated '.so'
#[pymodule(name = "libcu29_export")]
fn cu29_export(m: &Bound<'_, PyModule>) -> PyResult<()> {
m.add_class::<PyCuLogEntry>()?;
m.add_class::<PyLogIterator>()?;
Expand Down
4 changes: 2 additions & 2 deletions examples/cu_standalone_structlog/readlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
sys.path.append(str(target_dir))


import cu29_export
import libcu29_export

log_file_path = "logfile.bin"
index_file_path = target_dir / "cu29_log_index"

log_iterator, all_strings = cu29_export.struct_log_iterator_bare(log_file_path, str(index_file_path))
log_iterator, all_strings = libcu29_export.struct_log_iterator_bare(log_file_path, str(index_file_path))


for log_entry in log_iterator:
Expand Down

0 comments on commit 9678c5c

Please sign in to comment.