From fa6c658ca98f522ce771e9eb0787c59fa2839ed7 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sat, 17 Feb 2024 23:06:11 +0100 Subject: [PATCH] upd doc --- hui-glium/Cargo.toml | 4 ++-- hui/Cargo.toml | 2 +- hui/src/lib.rs | 8 +++++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/hui-glium/Cargo.toml b/hui-glium/Cargo.toml index 0f214c1..bbfe463 100644 --- a/hui-glium/Cargo.toml +++ b/hui-glium/Cargo.toml @@ -3,7 +3,7 @@ name = "hui-glium" description = "Glium backend for hUI" repository = "https://github.com/griffi-gh/hui" authors = ["griffi-gh "] -version = "0.0.1" +version = "0.0.2" edition = "2021" license = "GPL-3.0-or-later" publish = true @@ -14,7 +14,7 @@ include = [ ] [dependencies] -hui = { version = "=0.0.1", path = "../hui", default-features = false } +hui = { version = "^0.0", path = "../hui", default-features = false } glium = "0.34" glam = "0.25" log = "0.4" diff --git a/hui/Cargo.toml b/hui/Cargo.toml index 39b8232..000489a 100644 --- a/hui/Cargo.toml +++ b/hui/Cargo.toml @@ -4,7 +4,7 @@ description = "Simple UI library for games and other interactive applications" repository = "https://github.com/griffi-gh/hui" authors = ["griffi-gh "] rust-version = "1.75" -version = "0.0.1" +version = "0.0.2" edition = "2021" license = "GPL-3.0-or-later" publish = true diff --git a/hui/src/lib.rs b/hui/src/lib.rs index a18d6f3..a374f47 100644 --- a/hui/src/lib.rs +++ b/hui/src/lib.rs @@ -1,4 +1,9 @@ -use glam::Vec2; +#![forbid(unsafe_code)] +#![forbid(unsafe_op_in_unsafe_fn)] +#![doc(html_logo_url = "https://raw.githubusercontent.com/griffi-gh/hui/master/.assets/hui.svg")] +//! +//! Simple UI library for games and other interactive applications +//! pub mod element; pub mod event; @@ -12,6 +17,7 @@ use element::UiElement; use state::StateRepo; use draw::{UiDrawCommands, UiDrawPlan}; use text::{TextRenderer, FontTextureInfo, FontHandle}; +use glam::Vec2; // pub struct ElementContext<'a> { // pub state: &'a mut StateRepo,