Skip to content

feat: Added bridge from Rust to Python logging#38

Merged
0x676e67 merged 3 commits intomainfrom
logger
Feb 18, 2025
Merged

feat: Added bridge from Rust to Python logging#38
0x676e67 merged 3 commits intomainfrom
logger

Conversation

@0x676e67
Copy link
Copy Markdown
Owner

@0x676e67 0x676e67 commented Feb 18, 2025

This pull request introduces several significant changes to the rnet project, including the addition of logging features, updates to dependencies, and enhancements to the documentation and examples. The most important changes are outlined below:

Logging Features:

  • Added a new [features] section to Cargo.toml to include optional logging dependencies (pyo3-log and log) [1] [2].
  • Updated src/lib.rs to conditionally use the log and pyo3_log crates for logging when the logging feature is enabled [1] [2].
  • Modified src/dns.rs to log errors using the log crate when the logging feature is enabled.

Documentation and Examples:

  • Updated the description in README.md to improve clarity and readability.
  • Added a new example script examples/logger.py demonstrating how to use the rnet library with logging enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant