Fixed do doc.

This commit is contained in:
Samuel Guerra 2023-11-28 23:24:19 -03:00
parent 715ffde7c4
commit c1e38b5762
5 changed files with 20 additions and 7 deletions

View File

@ -35,8 +35,10 @@ TextInput! {
# Split Core
* Each app extension.
- They are mostly contained.
- Needs `AppExtension` and update types.
- We need a `zero-ui-app-api` and zero-ui-app pair?
- They need events, like ConfigManager needs LOW_MEMORY_EVENT.
* Var crate.
- Needs `context_local` for context_var. Ready.
@ -55,6 +57,10 @@ TextInput! {
- Should be pretty small still, or we could make a "var-api" crate.
- Needs LAYOUT context? Otherwise can't implement Layout2d and Layout1d.
## Split Main
* Per widget?
# Publish
* Publish if there is no missing component that could cause a core API refactor.

View File

@ -108,8 +108,15 @@ fn doc(mut args: Vec<&str>) {
let mut name = String::new();
let mut rustdoc_flags = String::new();
let mut is_in_package = false;
for line in toml.lines() {
if line.starts_with("name = ") {
let line = line.trim();
if line.starts_with('[') {
is_in_package = line == "[package]";
}
if is_in_package && line.starts_with("name = ") {
name = line["name = ".len()..].trim_matches('"').to_owned();
}
if line.starts_with("rustdoc-args = ") {

View File

@ -6,8 +6,8 @@ edition = "2021"
license = "Apache-2.0"
[features]
default = ["name", "bytemuck" ]
name = ["zero-ui-txt", "parking_lot"]
default = ["named", "bytemuck" ]
named = ["zero-ui-txt", "parking_lot"]
bytemuck = []
[dependencies]

View File

@ -9,11 +9,11 @@ use std::{
use rayon::iter::{FromParallelIterator, IntoParallelIterator, IntoParallelRefIterator, IntoParallelRefMutIterator};
#[cfg(feature = "name")]
mod name;
#[cfg(feature = "named")]
mod named;
#[cfg(feature = "name")]
pub use name::*;
#[cfg(feature = "named")]
pub use named::*;
#[doc(hidden)]
pub use paste::paste;