Skip to content

Expose rustpython_pylib in rustpython#7498

Merged
youknowone merged 1 commit intoRustPython:mainfrom
EtherealPsyche:main
Mar 24, 2026
Merged

Expose rustpython_pylib in rustpython#7498
youknowone merged 1 commit intoRustPython:mainfrom
EtherealPsyche:main

Conversation

@EtherealPsyche
Copy link
Copy Markdown
Contributor

@EtherealPsyche EtherealPsyche commented Mar 24, 2026

No need to cargo add rustpython-pylib anymore; rustpython_pylib::FROZEN_STDLIB is now accessible as rustpython::pylib::FROZEN_STDLIB.

Summary by CodeRabbit

Release Notes

  • New Features
    • Added pylib module for Python runtime functionality when the rustpython-pylib feature is enabled.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 24, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: df734be3-aaca-4019-91b7-7fee0d426fd5

📥 Commits

Reviewing files that changed from the base of the PR and between 5408627 and b0ed9db.

📒 Files selected for processing (1)
  • src/lib.rs

📝 Walkthrough

Walkthrough

A conditional public re-export was added to src/lib.rs. When the rustpython-pylib feature is enabled, the rustpython_pylib crate is now re-exported under the alias pylib for public consumption.

Changes

Cohort / File(s) Summary
Conditional Re-export
src/lib.rs
Added feature-gated public re-export of rustpython_pylib crate as pylib using #[cfg(feature = "rustpython-pylib")].

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A shiny new export, wrapped up with care,
When features align, it's exposed in the air,
Pylib now shows its face so bright,
Through Rust's gentle gates of conditional light! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: exposing the rustpython_pylib crate as a public re-export in rustpython.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@ShaharNaveh ShaharNaveh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, ty!

@youknowone youknowone merged commit 40c84f5 into RustPython:main Mar 24, 2026
18 checks passed
Copilot AI pushed a commit that referenced this pull request Mar 25, 2026
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.

3 participants