Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ nom = "7.1"
chrono = { version = "0.4", features = ["serde"] }
rayon = "1.8"

[patch.crates-io]
iced_graphics = { path = "patches/iced_graphics" }

[profile.release]
lto = "thin"
strip = true
Expand Down
4 changes: 4 additions & 0 deletions crates/x-adox-core/src/scenery/sorter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ pub fn sort_packs(
}
ord => return ord,
}
} else {
return std::cmp::Ordering::Less;
}
} else if extract_simheaven_info(&b.name).is_some() {
return std::cmp::Ordering::Greater;
}

// Pure Stability: items with the same score tier stay exactly where they were
Expand Down
133 changes: 133 additions & 0 deletions patches/iced_graphics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "iced_graphics"
version = "0.13.0"
authors = ["Héctor Ramón Jiménez <hector@hecrj.dev>"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A bunch of backend-agnostic types that can be leveraged to build a renderer for iced"
homepage = "https://iced.rs"
readme = false
keywords = [
"gui",
"ui",
"graphics",
"interface",
"widgets",
]
categories = ["gui"]
license = "MIT"
repository = "https://github.com/iced-rs/iced"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]

[lib]
name = "iced_graphics"
path = "src/lib.rs"

[dependencies.bitflags]
version = "2.0"

[dependencies.bytemuck]
version = "1.0"
features = ["derive"]

[dependencies.cosmic-text]
version = "0.12"

[dependencies.half]
version = "2.2"

[dependencies.iced_core]
version = "0.13.0"

[dependencies.iced_futures]
version = "0.13.0"

[dependencies.image]
version = "0.24"
optional = true
default-features = false

[dependencies.kamadak-exif]
version = "0.5"
optional = true

[dependencies.log]
version = "0.4"

[dependencies.lyon_path]
version = "1.0"
optional = true

[dependencies.once_cell]
version = "1.0"

[dependencies.raw-window-handle]
version = "0.6"

[dependencies.rustc-hash]
version = "2.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.unicode-segmentation]
version = "1.0"

[features]
fira-sans = []
geometry = ["lyon_path"]
image = [
"dep:image",
"kamadak-exif",
]
svg = []
web-colors = []

[lints.clippy]
default_trait_access = "deny"
filter_map_next = "deny"
from_over_into = "deny"
manual_let_else = "deny"
match-wildcard-for-single-variants = "deny"
needless_borrow = "deny"
new_without_default = "deny"
redundant-closure-for-method-calls = "deny"
semicolon_if_nothing_returned = "deny"
trivially-copy-pass-by-ref = "deny"
type-complexity = "allow"
unused_async = "deny"
useless_conversion = "deny"

[lints.rust]
missing_debug_implementations = "deny"
missing_docs = "deny"
unsafe_code = "deny"
unused_results = "deny"

[lints.rust.rust_2018_idioms]
level = "forbid"
priority = -1

[lints.rustdoc]
broken_intra_doc_links = "forbid"
49 changes: 49 additions & 0 deletions patches/iced_graphics/Cargo.toml.orig

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

Binary file added patches/iced_graphics/fonts/FiraSans-Regular.ttf
Binary file not shown.
Binary file added patches/iced_graphics/fonts/Iced-Icons.ttf
Binary file not shown.
24 changes: 24 additions & 0 deletions patches/iced_graphics/src/antialiasing.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/// An antialiasing strategy.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Antialiasing {
/// Multisample AA with 2 samples
MSAAx2,
/// Multisample AA with 4 samples
MSAAx4,
/// Multisample AA with 8 samples
MSAAx8,
/// Multisample AA with 16 samples
MSAAx16,
}

impl Antialiasing {
/// Returns the amount of samples of the [`Antialiasing`].
pub fn sample_count(self) -> u32 {
match self {
Antialiasing::MSAAx2 => 2,
Antialiasing::MSAAx4 => 4,
Antialiasing::MSAAx8 => 8,
Antialiasing::MSAAx16 => 16,
}
}
}
Loading