Skip to content

Commit f4a53db

Browse files
committed
feat: add a dependency to export submodules
1 parent 2366433 commit f4a53db

File tree

4 files changed

+23
-21
lines changed

4 files changed

+23
-21
lines changed

Cargo.lock

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ wasm-bindgen = { version = "0.2" }
1717
console_log = { version = "1"}
1818
console_error_panic_hook = { version = "0.1"}
1919
rand = "0.8.5"
20+
mod_use = "0.2.1"
2021

2122
[dev-dependencies]
2223
rusty-hook = "^0.11.2"

src/app.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use leptos_router::*;
44

55
use crate::{
66
components::{Footer, Header},
7-
pages::{Contributors, Index, Communidad},
7+
pages::{Communidad, Contributors, Index},
88
};
99

1010
#[component]

src/components/mod.rs

+14-20
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1-
mod button_link;
2-
pub use button_link::{*};
3-
pub mod cards;
4-
pub use cards::{*};
5-
pub mod community_projects;
6-
pub use community_projects::{*};
7-
mod dummy_component;
8-
pub use dummy_component::{*};
9-
pub mod footer;
10-
pub use footer::{*};
11-
pub mod header;
12-
pub use header::{*};
13-
pub mod hero;
14-
pub use hero::{*};
15-
pub mod icons;
16-
pub use icons::{*};
17-
pub mod other_communities;
18-
pub use other_communities::{*};
19-
pub mod our_communities;
20-
pub use our_communities::{*};
1+
use mod_use::mod_use;
2+
3+
mod_use![
4+
button_link,
5+
cards,
6+
community_projects,
7+
dummy_component,
8+
footer,
9+
header,
10+
hero,
11+
icons,
12+
other_communities,
13+
our_communities
14+
];

0 commit comments

Comments
 (0)