summary refs log tree commit diff stats
path: root/src/components/mod.rs
blob: ca2ac10221979116dfd55ff7fab058b80290c099 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use std::sync::atomic::{AtomicU32, Ordering};

// Generic
pub mod async_fetch;
pub mod container;
pub mod form;
pub mod icon_p;
pub mod input_placeholder;
pub mod select_placeholder;
pub mod banner;

// Specific
pub mod buy;
pub mod inventory;
pub mod product_overview;
pub mod recipies;
pub mod site_header;

fn get_id() -> u32 {
    static ID: AtomicU32 = AtomicU32::new(0);

    ID.fetch_add(1, Ordering::Relaxed)
}