Skip to content

Commit

Permalink
chore: basic integration test setup
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
  • Loading branch information
explodingcamera committed Aug 26, 2024
1 parent e14f6da commit e2f6769
Show file tree
Hide file tree
Showing 37 changed files with 460 additions and 288 deletions.
124 changes: 102 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@ rust-version="1.80"
repository="https://github.com/explodingcamera/liwan"
license="(AGPL-3.0-only AND Apache-2.0 AND MIT) OR LicenseRef-Liwan"

[lib]
path="src/lib.rs"

[[bin]]
name="liwan"
path="src/main.rs"

[dependencies]
tokio={version="1.38", default-features=false, features=["rt-multi-thread"]}
tokio-util={version="0.7", features=["io"]}
futures-util="0.3"


# encoding
hex={version="0.4"}
bs58="0.5.1"
Expand Down Expand Up @@ -60,7 +68,8 @@ refinery-core="0.8"
maxminddb={version="0.24", optional=true}

[dev-dependencies]
figment={version="0.10", features=["toml", "env", "test"]}
figment={version="*", features=["test"]}
poem={version="*", features=["test"]}

[features]
default=["geoip"]
Expand Down
28 changes: 14 additions & 14 deletions src/app/core.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
pub(crate) mod entities;
pub(crate) mod events;
pub(crate) mod onboarding;
pub(crate) mod projects;
pub(crate) mod reports;
pub(crate) mod sessions;
pub(crate) mod users;
pub mod entities;
pub mod events;
pub mod onboarding;
pub mod projects;
pub mod reports;
pub mod sessions;
pub mod users;

pub(crate) use entities::LiwanEntities;
pub(crate) use events::LiwanEvents;
pub(crate) use onboarding::LiwanOnboarding;
pub(crate) use projects::LiwanProjects;
pub(crate) use sessions::LiwanSessions;
pub(crate) use users::LiwanUsers;
pub use entities::LiwanEntities;
pub use events::LiwanEvents;
pub use onboarding::LiwanOnboarding;
pub use projects::LiwanProjects;
pub use sessions::LiwanSessions;
pub use users::LiwanUsers;

#[cfg(feature = "geoip")]
pub(crate) mod geoip;
pub mod geoip;
Loading

0 comments on commit e2f6769

Please sign in to comment.