Skip to content

Commit

Permalink
tidy: move extras to loco-org
Browse files Browse the repository at this point in the history
  • Loading branch information
jondot committed Oct 22, 2024
1 parent 245ef09 commit ac5e7d3
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 551 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["xtask", "loco-extras", "loco-gen"]
members = ["xtask", "loco-gen"]
exclude = ["starters"]

[workspace.package]
Expand Down
4 changes: 3 additions & 1 deletion examples/demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ default-run = "demo_app-cli"
[dependencies]

loco-rs = { path = "../../", version = "*" }
loco-extras = { version = "*", path = "../../loco-extras", features = ["full"] }
loco-extras = { version = "*", path = "../../../loco-extras", features = [
"full",
] }
migration = { path = "migration" }

serde = { version = "1", features = ["derive"] }
Expand Down
8 changes: 0 additions & 8 deletions examples/demo/src/app.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::path::Path;

use async_trait::async_trait;
use loco_extras;
use loco_rs::{
app::{AppContext, Hooks, Initializer},
boot::{create_app, BootResult, StartMode},
Expand Down Expand Up @@ -48,15 +47,8 @@ impl Hooks for App {
Box::new(initializers::axum_session::AxumSessionInitializer),
Box::new(initializers::view_engine::ViewEngineInitializer),
Box::new(initializers::hello_view_engine::HelloViewEngineInitializer),
Box::new(loco_extras::initializers::normalize_path::NormalizePathInitializer),
];

if ctx.environment != Environment::Test {
initializers.push(Box::new(
loco_extras::initializers::prometheus::AxumPrometheusInitializer,
));
}

Ok(initializers)
}
// </snip>
Expand Down
70 changes: 0 additions & 70 deletions loco-extras/Cargo.toml

This file was deleted.

10 changes: 0 additions & 10 deletions loco-extras/README.md

This file was deleted.

30 changes: 0 additions & 30 deletions loco-extras/src/initializers/extra_db.rs

This file was deleted.

73 changes: 0 additions & 73 deletions loco-extras/src/initializers/mod.rs

This file was deleted.

106 changes: 0 additions & 106 deletions loco-extras/src/initializers/mongodb/README.md

This file was deleted.

Loading

0 comments on commit ac5e7d3

Please sign in to comment.