Skip to content

Commit

Permalink
chore: add pyo3-log
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Jan 3, 2025
1 parent d506991 commit 5ffd647
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ crate-type = ["cdylib"]
duckdb = { version = "1.1.1", features = ["bundled"] }
geojson = "0.24.1"
pyo3 = "0.23.3"
pyo3-log = "0.12.1"
pythonize = "0.23.0"
serde_json = "1.0.134"
stac = { version = "0.11.1", features = [
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type Result<T> = std::result::Result<T, Error>;
/// A collection of functions for working with STAC, using Rust under the hood.
#[pymodule]
fn stacrs(m: &Bound<'_, PyModule>) -> PyResult<()> {
pyo3_log::init();
m.add_class::<duckdb::DuckdbClient>()?;
m.add_function(wrap_pyfunction!(migrate::migrate, m)?)?;
m.add_function(wrap_pyfunction!(migrate::migrate_href, m)?)?;
Expand Down

0 comments on commit 5ffd647

Please sign in to comment.