# Deprecating having both \`src/lib.rs\` and \`src/main.rs\` in the same package

**URL:** <https://internals.rust-lang.org/t/deprecating-having-both-src-lib-rs-and-src-main-rs-in-the-same-package/23033>\
**Category:** cargo\
**Created:** [June 2, 2025, 9:23pm UTC](https://internals.rust-lang.org/t/deprecating-having-both-src-lib-rs-and-src-main-rs-in-the-same-package/23033 "2025-06-02T21:23:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![epage](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/epage/32/3171_2.png) [@epage](https://internals.rust-lang.org/u/epage)\
**Post date:** [June 2, 2025, 9:36pm UTC](https://internals.rust-lang.org/t/deprecating-having-both-src-lib-rs-and-src-main-rs-in-the-same-package/23033/2 "2025-06-02T21:36:28Z")

</div>

I would be hesitant to shuffle around what we do for modules without first understanding if we'd want to further explore the idea at [The module scheme (`./module.rs` file + `./module` folder instead of just `./module/mod.rs`) introduced by the 2018 edition maybe a little bit (more) confusing - #6 by josh](https://internals.rust-lang.org/t/the-module-scheme-module-rs-file-module-folder-instead-of-just-module-mod-rs-introduced-by-the-2018-edition-maybe-a-little-bit-more-confusing/21977/6)

---

_[View the full topic](https://internals.rust-lang.org/t/deprecating-having-both-src-lib-rs-and-src-main-rs-in-the-same-package/23033)._
