Skip to content

Commit

Permalink
🧱 Move types' declaration into a single crate.
Browse files Browse the repository at this point in the history
  • Loading branch information
langyo committed Nov 16, 2024
1 parent 9c055f2 commit 0437304
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/theme/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ publish = false
crate-type = ["cdylib", "rlib"]

[dependencies]
hikari-types = { path = "../types" }

anyhow = { workspace = true }
async-trait = { workspace = true }
derive_more = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub mod components;
pub mod context;
pub mod prelude;
pub mod types;
pub use hikari_types as types;
25 changes: 25 additions & 0 deletions packages/types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[package]
authors = ["langyo <[email protected]>"]
name = "hikari-types"

version = "0.1.0"
edition = "2021"
publish = false

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
anyhow = { workspace = true }
async-trait = { workspace = true }
derive_more = { workspace = true }
once_cell = { workspace = true }

serde = { workspace = true }
serde_json = { workspace = true }
strum = { workspace = true }
base64 = { workspace = true }
yuuka = { workspace = true }

yew = { workspace = true }
stylist = { workspace = true }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion website/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ name = "build"
name = "dev"

[dependencies]
hikari-boot = { path = "../packages/boot" }
hikari-components = { path = "../packages/components" }
hikari-theme = { path = "../packages/theme" }
hikari-boot = { path = "../packages/boot" }
hikari-types = { path = "../packages/types" }

anyhow = { workspace = true }
async-trait = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use wasm_bindgen::{throw_str, UnwrapThrowExt};
use yew::prelude::*;

use hikari_components::form::Button;
use hikari_theme::{types::*, *};
use hikari_types::*;

use crate::{app::PageData, preload_data::PreloadDataContext};

Expand Down

0 comments on commit 0437304

Please sign in to comment.