Skip to content

Commit

Permalink
New framework core (#300)
Browse files Browse the repository at this point in the history
Notan's new core
  • Loading branch information
Nazariglez authored Jan 17, 2024
1 parent c8266d5 commit 6fd1c4e
Show file tree
Hide file tree
Showing 27 changed files with 1,563 additions and 157 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# TODO remove this
examples/test_*.rs

# Generated by Cargo
# will have compiled files and executables
**/target/
Expand Down
222 changes: 220 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ description = "A simple portable multimedia layer to create apps or games easily
[workspace]
# TODO set back to "crates/*" after cleanup
members = [
"crates/sys"
"crates/notan_core",
"crates/notan_macro2",
]

[workspace.package]
Expand All @@ -27,8 +28,8 @@ repository = "https://github.com/Nazariglez/notan"
edition = "2021"

[workspace.dependencies]
notan_sys = { path = "crates/sys" }
#notan_core = { path = "crates/notan_core" }
notan_core = { path = "crates/notan_core" }
notan_macro2 = { path = "crates/notan_macro2" }
#notan_input = { path = "crates/notan_input" }
#notan_app = { path = "crates/notan_app" }
#notan_macro = { path = "crates/notan_macro" }
Expand All @@ -53,6 +54,9 @@ log = "0.4.20"
hashbrown = "0.14.3"
parking_lot = "0.12.1"
bytemuck = "1.14.0"
anymap = "0.12.1"
arrayvec = "0.7.4"
raw-window-handle = "0.6.0"
serde = { version = "1.0", features = ["serde_derive"] }
image = { version = "0.24.7", default-features = false, features = ["jpeg", "png", "ico"] }

Expand All @@ -64,8 +68,8 @@ web-sys = "0.3.66"
js-sys = "0.3.65"

[dependencies]
notan_sys.workspace = true
#notan_core.workspace = true
notan_core.workspace = true
notan_macro2.workspace = true
#notan_input.workspace = true
#notan_app.workspace = true
#notan_macro.workspace = true
Expand Down
14 changes: 14 additions & 0 deletions crates/notan_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,26 @@ readme = "README.md"
description = "Basic types and structs used in Notan"

[dependencies]
paste = "1.0.14"
indexmap = "2.1.0"

anymap.workspace = true
raw-window-handle.workspace = true
log.workspace = true

arrayvec = { workspace = true, optional = true }
serde = { workspace = true, optional = true }

[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { workspace = true, optional = true }

[features]
# Avoid using a vector per event listener, instead uses an Array limited to 32 by default. The number can be changed
# passing `NOTAN_LIMIT_EVENTS_TO=N` with the desired size as compilation variable.
limited_events = ["arrayvec"]
# Allow to open links
links = []
# Allow to load dropped files
drop_files = ["web-sys", "web-sys/File"]
# Allow to use native clipboard if available
clipboard = []
Loading

0 comments on commit 6fd1c4e

Please sign in to comment.