Skip to content

Commit

Permalink
Rename dioxus-blitz to dioxus-native
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Oct 15, 2024
1 parent d134e4f commit 7a25440
Show file tree
Hide file tree
Showing 36 changed files with 31 additions and 31 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ members = [
"packages/blitz-dom",
"packages/blitz-net",
"packages/blitz-renderer-vello",
"packages/dioxus-blitz"
"packages/dioxus-native"
]
resolver = "2"

Expand Down Expand Up @@ -105,7 +105,7 @@ blitz-dom = { path = "./packages/blitz-dom" }
blitz-net = { path = "./packages/blitz-net" }
blitz-traits = { path = "./packages/blitz-traits" }
blitz-renderer-vello = { path = "./packages/blitz-renderer-vello" }
dioxus-blitz = { path = "./packages/dioxus-blitz", features = ["tracing"] }
dioxus-native = { path = "./packages/dioxus-native", features = ["tracing"] }
comrak = { git = "https://github.com/kivikakk/comrak", rev = "96a64d1befcaa8715098bf617e836c2ef70cb692", default-features = false, features = ["syntect"] }
png = { version = "0.17" }
dioxus = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ We don't yet have Blitz bindings for other languages (JavaScript, Python, etc) b
Blitz is split into several pieces:
- `blitz-dom`: The core DOM abstraction that includes style resolution and layout but not drawing/painting. Combines the best of Stylo and Taffy that allows you to build extendable dom-like structures.
- `blitz`: Adds a Vello/WGPU based renderer to `blitz-dom`
- `dioxus-blitz`: A dioxus integration layer for blitz. Render your Dioxus app using Blitz. Currently `dioxus-blitz` also contains the HTML renderer but this will likely be split out into it's own package in future.
- `dioxus-native`: A dioxus integration layer for blitz. Render your Dioxus app using Blitz. Currently `dioxus-native` also contains the HTML renderer but this will likely be split out into it's own package in future.

## Status

Expand Down
2 changes: 1 addition & 1 deletion examples/accessibility.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use dioxus::prelude::*;

fn main() {
dioxus_blitz::launch(app);
dioxus_native::launch(app);
}

fn app() -> Element {
Expand Down
2 changes: 1 addition & 1 deletion examples/bare_style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn root() -> Element {
}

fn main() {
dioxus_blitz::launch(root);
dioxus_native::launch(root);

// let document = blitz_dom::Document::new();

Expand Down
2 changes: 1 addition & 1 deletion examples/border.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use dioxus::prelude::*;

fn main() {
dioxus_blitz::launch(app);
dioxus_native::launch(app);
}

fn app() -> Element {
Expand Down
2 changes: 1 addition & 1 deletion examples/flex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Servo doesn't have:
use dioxus::prelude::*;

fn main() {
dioxus_blitz::launch(app);
dioxus_native::launch(app);
}

fn app() -> Element {
Expand Down
2 changes: 1 addition & 1 deletion examples/flex_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Servo doesn't have:
use dioxus::prelude::*;

fn main() {
dioxus_blitz::launch(app);
dioxus_native::launch(app);
}

fn app() -> Element {
Expand Down
2 changes: 1 addition & 1 deletion examples/form.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use dioxus::prelude::*;

fn main() {
dioxus_blitz::launch(app);
dioxus_native::launch(app);
}

fn app() -> Element {
Expand Down
4 changes: 2 additions & 2 deletions examples/google.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//! Render google.com!

use dioxus_blitz::Config;
use dioxus_native::Config;

fn main() {
dioxus_blitz::launch_static_html_cfg(
dioxus_native::launch_static_html_cfg(
&get_html(),
Config {
stylesheets: Vec::new(),
Expand Down
4 changes: 2 additions & 2 deletions examples/gosub.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use dioxus_blitz::Config;
use dioxus_native::Config;

fn main() {
dioxus_blitz::launch_static_html_cfg(
dioxus_native::launch_static_html_cfg(
include_str!("./assets/gosub_reduced.html"),
Config {
stylesheets: Vec::new(),
Expand Down
2 changes: 1 addition & 1 deletion examples/gradient.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use dioxus::prelude::*;

fn main() {
dioxus_blitz::launch(app);
dioxus_native::launch(app);
}

fn app() -> Element {
Expand Down
4 changes: 2 additions & 2 deletions examples/html.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use dioxus_blitz::Config;
use dioxus_native::Config;

fn main() {
let local_file_path = std::env::args()
Expand All @@ -8,7 +8,7 @@ fn main() {

let file_content = std::fs::read_to_string(local_file_path).unwrap();

dioxus_blitz::launch_static_html_cfg(
dioxus_native::launch_static_html_cfg(
&file_content,
Config {
stylesheets: Vec::new(),
Expand Down
2 changes: 1 addition & 1 deletion examples/inline_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use dioxus::prelude::*;

fn main() {
dioxus_blitz::launch(app);
dioxus_native::launch(app);
}

fn app() -> Element {
Expand Down
2 changes: 1 addition & 1 deletion examples/interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use dioxus::prelude::*;

fn main() {
tracing_subscriber::fmt::init();
dioxus_blitz::launch(app);
dioxus_native::launch(app);
}

fn app() -> Element {
Expand Down
2 changes: 1 addition & 1 deletion examples/layout_debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use dioxus::prelude::*;

fn main() {
dioxus_blitz::launch(app);
dioxus_native::launch(app);
}

fn app() -> Element {
Expand Down
4 changes: 2 additions & 2 deletions examples/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use comrak::{
plugins::syntect::SyntectAdapter, ExtensionOptionsBuilder, Options, Plugins,
RenderOptionsBuilder,
};
use dioxus_blitz::Config;
use dioxus_native::Config;

fn main() {
let (base_url, contents) = std::env::args()
Expand Down Expand Up @@ -72,7 +72,7 @@ fn main() {

println!("{html}");

dioxus_blitz::launch_static_html_cfg(
dioxus_native::launch_static_html_cfg(
&html,
Config {
stylesheets: vec![String::from(stylesheet)],
Expand Down
2 changes: 1 addition & 1 deletion examples/outline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use dioxus::prelude::*;

fn main() {
dioxus_blitz::launch(app);
dioxus_native::launch(app);
}

fn app() -> Element {
Expand Down
2 changes: 1 addition & 1 deletion examples/parse_debug.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Render minimal html5 page

fn main() {
dioxus_blitz::launch_static_html(include_str!("./assets/google_reduced.html"));
dioxus_native::launch_static_html(include_str!("./assets/google_reduced.html"));
}
2 changes: 1 addition & 1 deletion examples/scroll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ fn root() -> Element {
}

fn main() {
dioxus_blitz::launch(root);
dioxus_native::launch(root);
}
4 changes: 2 additions & 2 deletions examples/servo.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use dioxus_blitz::Config;
use dioxus_native::Config;

fn main() {
dioxus_blitz::launch_static_html_cfg(
dioxus_native::launch_static_html_cfg(
include_str!("./assets/servo.html"),
Config {
stylesheets: Vec::new(),
Expand Down
2 changes: 1 addition & 1 deletion examples/tailwind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use dioxus::prelude::*;

fn main() {
dioxus_blitz::launch(app);
dioxus_native::launch(app);
}

fn app() -> Element {
Expand Down
2 changes: 1 addition & 1 deletion examples/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use dioxus::prelude::*;
fn main() {
tracing_subscriber::fmt::init();

dioxus_blitz::launch(app);
dioxus_native::launch(app);
}

fn app() -> Element {
Expand Down
2 changes: 1 addition & 1 deletion examples/todomvc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::collections::HashMap;

fn main() {
tracing_subscriber::fmt::init();
dioxus_blitz::launch(app)
dioxus_native::launch(app)
}

#[derive(PartialEq, Eq, Clone, Copy)]
Expand Down
2 changes: 1 addition & 1 deletion examples/url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ fn main() {
.skip(1)
.next()
.unwrap_or_else(|| "https://www.google.com".into());
dioxus_blitz::launch_url(&url);
dioxus_native::launch_url(&url);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "dioxus-blitz"
name = "dioxus-native"
version = "0.0.0"
license.workspace = true
edition = "2021"
Expand Down
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.
File renamed without changes.

0 comments on commit 7a25440

Please sign in to comment.