Skip to content

Commit e2f6769

Browse files
chore: basic integration test setup
Signed-off-by: Henry Gressmann <[email protected]>
1 parent e14f6da commit e2f6769

37 files changed

+460
-288
lines changed

Cargo.lock

Lines changed: 102 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,19 @@ rust-version="1.80"
66
repository="https://github.com/explodingcamera/liwan"
77
license="(AGPL-3.0-only AND Apache-2.0 AND MIT) OR LicenseRef-Liwan"
88

9+
[lib]
10+
path="src/lib.rs"
11+
12+
[[bin]]
13+
name="liwan"
14+
path="src/main.rs"
15+
916
[dependencies]
1017
tokio={version="1.38", default-features=false, features=["rt-multi-thread"]}
1118
tokio-util={version="0.7", features=["io"]}
1219
futures-util="0.3"
1320

21+
1422
# encoding
1523
hex={version="0.4"}
1624
bs58="0.5.1"
@@ -60,7 +68,8 @@ refinery-core="0.8"
6068
maxminddb={version="0.24", optional=true}
6169

6270
[dev-dependencies]
63-
figment={version="0.10", features=["toml", "env", "test"]}
71+
figment={version="*", features=["test"]}
72+
poem={version="*", features=["test"]}
6473

6574
[features]
6675
default=["geoip"]

src/app/core.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
pub(crate) mod entities;
2-
pub(crate) mod events;
3-
pub(crate) mod onboarding;
4-
pub(crate) mod projects;
5-
pub(crate) mod reports;
6-
pub(crate) mod sessions;
7-
pub(crate) mod users;
1+
pub mod entities;
2+
pub mod events;
3+
pub mod onboarding;
4+
pub mod projects;
5+
pub mod reports;
6+
pub mod sessions;
7+
pub mod users;
88

9-
pub(crate) use entities::LiwanEntities;
10-
pub(crate) use events::LiwanEvents;
11-
pub(crate) use onboarding::LiwanOnboarding;
12-
pub(crate) use projects::LiwanProjects;
13-
pub(crate) use sessions::LiwanSessions;
14-
pub(crate) use users::LiwanUsers;
9+
pub use entities::LiwanEntities;
10+
pub use events::LiwanEvents;
11+
pub use onboarding::LiwanOnboarding;
12+
pub use projects::LiwanProjects;
13+
pub use sessions::LiwanSessions;
14+
pub use users::LiwanUsers;
1515

1616
#[cfg(feature = "geoip")]
17-
pub(crate) mod geoip;
17+
pub mod geoip;

0 commit comments

Comments
 (0)