Use Taplo for TOML formatting
This commit is contained in:
parent
21c121f9b3
commit
3398ebe467
9 changed files with 171 additions and 167 deletions
|
|
@ -2,8 +2,8 @@
|
||||||
#
|
#
|
||||||
# Note that these flags are (intentionally) not included when building from the downloaded crate.
|
# Note that these flags are (intentionally) not included when building from the downloaded crate.
|
||||||
[build]
|
[build]
|
||||||
rustflags = ["--cfg=unreleased_changelogs"]
|
|
||||||
rustdocflags = ["--cfg=unreleased_changelogs"]
|
rustdocflags = ["--cfg=unreleased_changelogs"]
|
||||||
|
rustflags = ["--cfg=unreleased_changelogs"]
|
||||||
|
|
||||||
[target.wasm32-unknown-unknown]
|
[target.wasm32-unknown-unknown]
|
||||||
runner = "wasm-bindgen-test-runner"
|
runner = "wasm-bindgen-test-runner"
|
||||||
|
|
|
||||||
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
|
|
@ -17,6 +17,19 @@ jobs:
|
||||||
- name: Check Formatting
|
- name: Check Formatting
|
||||||
run: cargo fmt -- --check
|
run: cargo fmt -- --check
|
||||||
|
|
||||||
|
taplo:
|
||||||
|
name: Taplo
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: taiki-e/checkout-action@v1
|
||||||
|
- name: Install Taplo
|
||||||
|
uses: taiki-e/install-action@v2
|
||||||
|
with:
|
||||||
|
tool: taplo-cli
|
||||||
|
- name: Run Taplo
|
||||||
|
run: taplo fmt --check
|
||||||
|
|
||||||
typos:
|
typos:
|
||||||
name: Check for typos
|
name: Check for typos
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
211
Cargo.toml
211
Cargo.toml
|
|
@ -1,20 +1,17 @@
|
||||||
[package]
|
[package]
|
||||||
name = "winit"
|
authors = ["The winit contributors", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
|
||||||
version = "0.30.4"
|
|
||||||
authors = [
|
|
||||||
"The winit contributors",
|
|
||||||
"Pierre Krieger <pierre.krieger1708@gmail.com>",
|
|
||||||
]
|
|
||||||
description = "Cross-platform window creation library."
|
|
||||||
keywords = ["windowing"]
|
|
||||||
readme = "README.md"
|
|
||||||
documentation = "https://docs.rs/winit"
|
|
||||||
categories = ["gui"]
|
categories = ["gui"]
|
||||||
rust-version.workspace = true
|
description = "Cross-platform window creation library."
|
||||||
repository.workspace = true
|
documentation = "https://docs.rs/winit"
|
||||||
license.workspace = true
|
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
exclude = ["/.cargo"]
|
exclude = ["/.cargo"]
|
||||||
|
keywords = ["windowing"]
|
||||||
|
license.workspace = true
|
||||||
|
name = "winit"
|
||||||
|
readme = "README.md"
|
||||||
|
repository.workspace = true
|
||||||
|
rust-version.workspace = true
|
||||||
|
version = "0.30.4"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
features = [
|
features = [
|
||||||
|
|
@ -27,6 +24,7 @@ features = [
|
||||||
"android-native-activity",
|
"android-native-activity",
|
||||||
]
|
]
|
||||||
# These are all tested in CI
|
# These are all tested in CI
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
targets = [
|
targets = [
|
||||||
# Windows
|
# Windows
|
||||||
"i686-pc-windows-msvc",
|
"i686-pc-windows-msvc",
|
||||||
|
|
@ -43,12 +41,17 @@ targets = [
|
||||||
# Web
|
# Web
|
||||||
"wasm32-unknown-unknown",
|
"wasm32-unknown-unknown",
|
||||||
]
|
]
|
||||||
rustdoc-args = ["--cfg", "docsrs"]
|
|
||||||
|
|
||||||
# Features are documented in either `lib.rs` or under `winit::platform`.
|
# Features are documented in either `lib.rs` or under `winit::platform`.
|
||||||
[features]
|
[features]
|
||||||
|
android-game-activity = ["android-activity/game-activity"]
|
||||||
|
android-native-activity = ["android-activity/native-activity"]
|
||||||
default = ["rwh_06", "x11", "wayland", "wayland-dlopen", "wayland-csd-adwaita"]
|
default = ["rwh_06", "x11", "wayland", "wayland-dlopen", "wayland-csd-adwaita"]
|
||||||
x11 = ["x11-dl", "bytemuck", "percent-encoding", "xkbcommon-dl/x11", "x11rb"]
|
mint = ["dpi/mint"]
|
||||||
|
rwh_04 = ["dep:rwh_04", "ndk/rwh_04"]
|
||||||
|
rwh_05 = ["dep:rwh_05", "ndk/rwh_05"]
|
||||||
|
rwh_06 = ["dep:rwh_06", "ndk/rwh_06"]
|
||||||
|
serde = ["dep:serde", "cursor-icon/serde", "smol_str/serde", "dpi/serde"]
|
||||||
wayland = [
|
wayland = [
|
||||||
"wayland-client",
|
"wayland-client",
|
||||||
"wayland-backend",
|
"wayland-backend",
|
||||||
|
|
@ -58,17 +61,11 @@ wayland = [
|
||||||
"ahash",
|
"ahash",
|
||||||
"memmap2",
|
"memmap2",
|
||||||
]
|
]
|
||||||
wayland-dlopen = ["wayland-backend/dlopen"]
|
|
||||||
wayland-csd-adwaita = ["sctk-adwaita", "sctk-adwaita/ab_glyph"]
|
wayland-csd-adwaita = ["sctk-adwaita", "sctk-adwaita/ab_glyph"]
|
||||||
wayland-csd-adwaita-crossfont = ["sctk-adwaita", "sctk-adwaita/crossfont"]
|
wayland-csd-adwaita-crossfont = ["sctk-adwaita", "sctk-adwaita/crossfont"]
|
||||||
wayland-csd-adwaita-notitle = ["sctk-adwaita"]
|
wayland-csd-adwaita-notitle = ["sctk-adwaita"]
|
||||||
android-native-activity = ["android-activity/native-activity"]
|
wayland-dlopen = ["wayland-backend/dlopen"]
|
||||||
android-game-activity = ["android-activity/game-activity"]
|
x11 = ["x11-dl", "bytemuck", "percent-encoding", "xkbcommon-dl/x11", "x11rb"]
|
||||||
serde = ["dep:serde", "cursor-icon/serde", "smol_str/serde", "dpi/serde"]
|
|
||||||
mint = ["dpi/mint"]
|
|
||||||
rwh_04 = ["dep:rwh_04", "ndk/rwh_04"]
|
|
||||||
rwh_05 = ["dep:rwh_05", "ndk/rwh_05"]
|
|
||||||
rwh_06 = ["dep:rwh_06", "ndk/rwh_06"]
|
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
cfg_aliases = "0.2.1"
|
cfg_aliases = "0.2.1"
|
||||||
|
|
@ -78,12 +75,8 @@ bitflags = "2"
|
||||||
cursor-icon = "1.1.0"
|
cursor-icon = "1.1.0"
|
||||||
dpi = { version = "0.1.1", path = "dpi" }
|
dpi = { version = "0.1.1", path = "dpi" }
|
||||||
rwh_04 = { package = "raw-window-handle", version = "0.4", optional = true }
|
rwh_04 = { package = "raw-window-handle", version = "0.4", optional = true }
|
||||||
rwh_05 = { package = "raw-window-handle", version = "0.5.2", features = [
|
rwh_05 = { package = "raw-window-handle", version = "0.5.2", features = ["std"], optional = true }
|
||||||
"std",
|
rwh_06 = { package = "raw-window-handle", version = "0.6", features = ["std"], optional = true }
|
||||||
], optional = true }
|
|
||||||
rwh_06 = { package = "raw-window-handle", version = "0.6", features = [
|
|
||||||
"std",
|
|
||||||
], optional = true }
|
|
||||||
serde = { workspace = true, optional = true }
|
serde = { workspace = true, optional = true }
|
||||||
smol_str = "0.2.0"
|
smol_str = "0.2.0"
|
||||||
tracing = { version = "0.1.40", default-features = false }
|
tracing = { version = "0.1.40", default-features = false }
|
||||||
|
|
@ -114,27 +107,8 @@ objc2 = "0.5.2"
|
||||||
|
|
||||||
# AppKit
|
# AppKit
|
||||||
[target.'cfg(target_os = "macos")'.dependencies]
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
core-graphics = "0.23.1"
|
|
||||||
block2 = "0.5.1"
|
block2 = "0.5.1"
|
||||||
objc2-foundation = { version = "0.2.2", features = [
|
core-graphics = "0.23.1"
|
||||||
"block2",
|
|
||||||
"dispatch",
|
|
||||||
"NSArray",
|
|
||||||
"NSAttributedString",
|
|
||||||
"NSData",
|
|
||||||
"NSDictionary",
|
|
||||||
"NSDistributedNotificationCenter",
|
|
||||||
"NSEnumerator",
|
|
||||||
"NSKeyValueObserving",
|
|
||||||
"NSNotification",
|
|
||||||
"NSObjCRuntime",
|
|
||||||
"NSPathUtilities",
|
|
||||||
"NSProcessInfo",
|
|
||||||
"NSRunLoop",
|
|
||||||
"NSString",
|
|
||||||
"NSThread",
|
|
||||||
"NSValue",
|
|
||||||
] }
|
|
||||||
objc2-app-kit = { version = "0.2.2", features = [
|
objc2-app-kit = { version = "0.2.2", features = [
|
||||||
"NSAppearance",
|
"NSAppearance",
|
||||||
"NSApplication",
|
"NSApplication",
|
||||||
|
|
@ -163,6 +137,25 @@ objc2-app-kit = { version = "0.2.2", features = [
|
||||||
"NSWindowScripting",
|
"NSWindowScripting",
|
||||||
"NSWindowTabGroup",
|
"NSWindowTabGroup",
|
||||||
] }
|
] }
|
||||||
|
objc2-foundation = { version = "0.2.2", features = [
|
||||||
|
"block2",
|
||||||
|
"dispatch",
|
||||||
|
"NSArray",
|
||||||
|
"NSAttributedString",
|
||||||
|
"NSData",
|
||||||
|
"NSDictionary",
|
||||||
|
"NSDistributedNotificationCenter",
|
||||||
|
"NSEnumerator",
|
||||||
|
"NSKeyValueObserving",
|
||||||
|
"NSNotification",
|
||||||
|
"NSObjCRuntime",
|
||||||
|
"NSPathUtilities",
|
||||||
|
"NSProcessInfo",
|
||||||
|
"NSRunLoop",
|
||||||
|
"NSString",
|
||||||
|
"NSThread",
|
||||||
|
"NSValue",
|
||||||
|
] }
|
||||||
|
|
||||||
# UIKit
|
# UIKit
|
||||||
[target.'cfg(all(target_vendor = "apple", not(target_os = "macos")))'.dependencies]
|
[target.'cfg(all(target_vendor = "apple", not(target_os = "macos")))'.dependencies]
|
||||||
|
|
@ -250,12 +243,8 @@ wayland-backend = { version = "0.3.5", default-features = false, features = [
|
||||||
"client_system",
|
"client_system",
|
||||||
], optional = true }
|
], optional = true }
|
||||||
wayland-client = { version = "0.31.4", optional = true }
|
wayland-client = { version = "0.31.4", optional = true }
|
||||||
wayland-protocols = { version = "0.32.2", features = [
|
wayland-protocols = { version = "0.32.2", features = ["staging"], optional = true }
|
||||||
"staging",
|
wayland-protocols-plasma = { version = "0.3.2", features = ["client"], optional = true }
|
||||||
], optional = true }
|
|
||||||
wayland-protocols-plasma = { version = "0.3.2", features = [
|
|
||||||
"client",
|
|
||||||
], optional = true }
|
|
||||||
x11-dl = { version = "2.19.1", optional = true }
|
x11-dl = { version = "2.19.1", optional = true }
|
||||||
x11rb = { version = "0.13.0", default-features = false, features = [
|
x11rb = { version = "0.13.0", default-features = false, features = [
|
||||||
"allow-unsafe-code",
|
"allow-unsafe-code",
|
||||||
|
|
@ -275,62 +264,62 @@ redox_syscall = "0.4.1"
|
||||||
|
|
||||||
# Web
|
# Web
|
||||||
[target.'cfg(target_family = "wasm")'.dependencies]
|
[target.'cfg(target_family = "wasm")'.dependencies]
|
||||||
web_sys = { package = "web-sys", version = "0.3.64", features = [
|
|
||||||
'AbortController',
|
|
||||||
'AbortSignal',
|
|
||||||
'Blob',
|
|
||||||
'BlobPropertyBag',
|
|
||||||
'console',
|
|
||||||
'CssStyleDeclaration',
|
|
||||||
'Document',
|
|
||||||
'DomException',
|
|
||||||
'DomRect',
|
|
||||||
'DomRectReadOnly',
|
|
||||||
'Element',
|
|
||||||
'Event',
|
|
||||||
'EventTarget',
|
|
||||||
'FocusEvent',
|
|
||||||
'HtmlCanvasElement',
|
|
||||||
'HtmlElement',
|
|
||||||
'HtmlImageElement',
|
|
||||||
'ImageBitmap',
|
|
||||||
'ImageBitmapOptions',
|
|
||||||
'ImageBitmapRenderingContext',
|
|
||||||
'ImageData',
|
|
||||||
'IntersectionObserver',
|
|
||||||
'IntersectionObserverEntry',
|
|
||||||
'KeyboardEvent',
|
|
||||||
'MediaQueryList',
|
|
||||||
'MessageChannel',
|
|
||||||
'MessagePort',
|
|
||||||
'Navigator',
|
|
||||||
'Node',
|
|
||||||
'OrientationType',
|
|
||||||
'OrientationLockType',
|
|
||||||
'PageTransitionEvent',
|
|
||||||
'Permissions',
|
|
||||||
'PermissionState',
|
|
||||||
'PermissionStatus',
|
|
||||||
'PointerEvent',
|
|
||||||
'PremultiplyAlpha',
|
|
||||||
'ResizeObserver',
|
|
||||||
'ResizeObserverBoxOptions',
|
|
||||||
'ResizeObserverEntry',
|
|
||||||
'ResizeObserverOptions',
|
|
||||||
'ResizeObserverSize',
|
|
||||||
'Screen',
|
|
||||||
'ScreenOrientation',
|
|
||||||
'VisibilityState',
|
|
||||||
'Window',
|
|
||||||
'WheelEvent',
|
|
||||||
'Worker',
|
|
||||||
'Url',
|
|
||||||
] }
|
|
||||||
js-sys = "0.3.64"
|
js-sys = "0.3.64"
|
||||||
pin-project = "1"
|
pin-project = "1"
|
||||||
wasm-bindgen = "0.2"
|
wasm-bindgen = "0.2"
|
||||||
wasm-bindgen-futures = "0.4"
|
wasm-bindgen-futures = "0.4"
|
||||||
web-time = "1"
|
web-time = "1"
|
||||||
|
web_sys = { package = "web-sys", version = "0.3.64", features = [
|
||||||
|
"AbortController",
|
||||||
|
"AbortSignal",
|
||||||
|
"Blob",
|
||||||
|
"BlobPropertyBag",
|
||||||
|
"console",
|
||||||
|
"CssStyleDeclaration",
|
||||||
|
"Document",
|
||||||
|
"DomException",
|
||||||
|
"DomRect",
|
||||||
|
"DomRectReadOnly",
|
||||||
|
"Element",
|
||||||
|
"Event",
|
||||||
|
"EventTarget",
|
||||||
|
"FocusEvent",
|
||||||
|
"HtmlCanvasElement",
|
||||||
|
"HtmlElement",
|
||||||
|
"HtmlImageElement",
|
||||||
|
"ImageBitmap",
|
||||||
|
"ImageBitmapOptions",
|
||||||
|
"ImageBitmapRenderingContext",
|
||||||
|
"ImageData",
|
||||||
|
"IntersectionObserver",
|
||||||
|
"IntersectionObserverEntry",
|
||||||
|
"KeyboardEvent",
|
||||||
|
"MediaQueryList",
|
||||||
|
"MessageChannel",
|
||||||
|
"MessagePort",
|
||||||
|
"Navigator",
|
||||||
|
"Node",
|
||||||
|
"OrientationLockType",
|
||||||
|
"OrientationType",
|
||||||
|
"PageTransitionEvent",
|
||||||
|
"Permissions",
|
||||||
|
"PermissionState",
|
||||||
|
"PermissionStatus",
|
||||||
|
"PointerEvent",
|
||||||
|
"PremultiplyAlpha",
|
||||||
|
"ResizeObserver",
|
||||||
|
"ResizeObserverBoxOptions",
|
||||||
|
"ResizeObserverEntry",
|
||||||
|
"ResizeObserverOptions",
|
||||||
|
"ResizeObserverSize",
|
||||||
|
"Screen",
|
||||||
|
"ScreenOrientation",
|
||||||
|
"Url",
|
||||||
|
"VisibilityState",
|
||||||
|
"WheelEvent",
|
||||||
|
"Window",
|
||||||
|
"Worker",
|
||||||
|
] }
|
||||||
|
|
||||||
[target.'cfg(all(target_family = "wasm", target_feature = "atomics"))'.dependencies]
|
[target.'cfg(all(target_family = "wasm", target_feature = "atomics"))'.dependencies]
|
||||||
atomic-waker = "1"
|
atomic-waker = "1"
|
||||||
|
|
@ -346,15 +335,15 @@ doc-scrape-examples = true
|
||||||
name = "window"
|
name = "window"
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
resolver = "2"
|
|
||||||
members = ["dpi"]
|
members = ["dpi"]
|
||||||
|
resolver = "2"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
rust-version = "1.73"
|
|
||||||
repository = "https://github.com/rust-windowing/winit"
|
|
||||||
license = "Apache-2.0"
|
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
license = "Apache-2.0"
|
||||||
|
repository = "https://github.com/rust-windowing/winit"
|
||||||
|
rust-version = "1.73"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
serde = { version = "1", features = ["serde_derive"] }
|
|
||||||
mint = "0.5.6"
|
mint = "0.5.6"
|
||||||
|
serde = { version = "1", features = ["serde_derive"] }
|
||||||
|
|
|
||||||
24
clippy.toml
24
clippy.toml
|
|
@ -1,16 +1,16 @@
|
||||||
disallowed-methods = [
|
disallowed-methods = [
|
||||||
{ path = "web_sys::window", reason = "is not available in every context" },
|
|
||||||
{ path = "web_sys::HtmlCanvasElement::width", reason = "Winit shouldn't touch the internal canvas size" },
|
|
||||||
{ path = "web_sys::HtmlCanvasElement::height", reason = "Winit shouldn't touch the internal canvas size" },
|
|
||||||
{ path = "web_sys::HtmlCanvasElement::set_width", reason = "Winit shouldn't touch the internal canvas size" },
|
|
||||||
{ path = "web_sys::HtmlCanvasElement::set_height", reason = "Winit shouldn't touch the internal canvas size" },
|
|
||||||
{ path = "web_sys::Window::navigator", reason = "cache this to reduce calls to JS" },
|
|
||||||
{ path = "web_sys::Window::document", reason = "cache this to reduce calls to JS" },
|
|
||||||
{ path = "web_sys::Window::get_computed_style", reason = "cache this to reduce calls to JS" },
|
|
||||||
{ path = "web_sys::HtmlElement::style", reason = "cache this to reduce calls to JS" },
|
|
||||||
{ path = "web_sys::Element::request_fullscreen", reason = "Doesn't account for compatibility with Safari" },
|
|
||||||
{ path = "web_sys::Document::exit_fullscreen", reason = "Doesn't account for compatibility with Safari" },
|
|
||||||
{ path = "web_sys::Document::fullscreen_element", reason = "Doesn't account for compatibility with Safari" },
|
|
||||||
{ path = "objc2_app_kit::NSView::visibleRect", reason = "We expose a render target to the user, and visibility is not really relevant to that (and can break if you don't use the rectangle position as well). Use `frame` instead." },
|
{ path = "objc2_app_kit::NSView::visibleRect", reason = "We expose a render target to the user, and visibility is not really relevant to that (and can break if you don't use the rectangle position as well). Use `frame` instead." },
|
||||||
{ path = "objc2_app_kit::NSWindow::setFrameTopLeftPoint", reason = "Not sufficient when working with Winit's coordinate system, use `flip_window_screen_coordinates` instead" },
|
{ path = "objc2_app_kit::NSWindow::setFrameTopLeftPoint", reason = "Not sufficient when working with Winit's coordinate system, use `flip_window_screen_coordinates` instead" },
|
||||||
|
{ path = "web_sys::Document::exit_fullscreen", reason = "Doesn't account for compatibility with Safari" },
|
||||||
|
{ path = "web_sys::Document::fullscreen_element", reason = "Doesn't account for compatibility with Safari" },
|
||||||
|
{ path = "web_sys::Element::request_fullscreen", reason = "Doesn't account for compatibility with Safari" },
|
||||||
|
{ path = "web_sys::HtmlCanvasElement::height", reason = "Winit shouldn't touch the internal canvas size" },
|
||||||
|
{ path = "web_sys::HtmlCanvasElement::set_height", reason = "Winit shouldn't touch the internal canvas size" },
|
||||||
|
{ path = "web_sys::HtmlCanvasElement::set_width", reason = "Winit shouldn't touch the internal canvas size" },
|
||||||
|
{ path = "web_sys::HtmlCanvasElement::width", reason = "Winit shouldn't touch the internal canvas size" },
|
||||||
|
{ path = "web_sys::HtmlElement::style", reason = "cache this to reduce calls to JS" },
|
||||||
|
{ path = "web_sys::Window::document", reason = "cache this to reduce calls to JS" },
|
||||||
|
{ path = "web_sys::Window::get_computed_style", reason = "cache this to reduce calls to JS" },
|
||||||
|
{ path = "web_sys::Window::navigator", reason = "cache this to reduce calls to JS" },
|
||||||
|
{ path = "web_sys::window", reason = "is not available in every context" },
|
||||||
]
|
]
|
||||||
|
|
|
||||||
29
deny.toml
29
deny.toml
|
|
@ -18,31 +18,23 @@ targets = [
|
||||||
{ triple = "x86_64-unknown-redox" },
|
{ triple = "x86_64-unknown-redox" },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
[advisories]
|
[advisories]
|
||||||
vulnerability = "deny"
|
|
||||||
unmaintained = "warn"
|
|
||||||
yanked = "deny"
|
|
||||||
ignore = []
|
ignore = []
|
||||||
|
unmaintained = "warn"
|
||||||
|
vulnerability = "deny"
|
||||||
|
yanked = "deny"
|
||||||
|
|
||||||
[bans]
|
[bans]
|
||||||
multiple-versions = "deny"
|
|
||||||
wildcards = "allow" # at least until https://github.com/EmbarkStudios/cargo-deny/issues/241 is fixed
|
|
||||||
deny = []
|
deny = []
|
||||||
|
multiple-versions = "deny"
|
||||||
skip = [
|
skip = [
|
||||||
{ name = "raw-window-handle" }, # we intentionally have multiple versions of this
|
{ name = "bitflags" }, # the ecosystem is in the process of migrating.
|
||||||
{ name = "bitflags" }, # the ecosystem is in the process of migrating.
|
{ name = "raw-window-handle" }, # we intentionally have multiple versions of this
|
||||||
]
|
]
|
||||||
skip-tree = []
|
skip-tree = []
|
||||||
|
wildcards = "allow" # at least until https://github.com/EmbarkStudios/cargo-deny/issues/241 is fixed
|
||||||
|
|
||||||
[licenses]
|
[licenses]
|
||||||
private = { ignore = true }
|
|
||||||
unlicensed = "deny"
|
|
||||||
allow-osi-fsf-free = "neither"
|
|
||||||
confidence-threshold = 0.92 # We want really high confidence when inferring licenses from text
|
|
||||||
copyleft = "deny"
|
|
||||||
allow = [
|
allow = [
|
||||||
"Apache-2.0 WITH LLVM-exception", # https://spdx.org/licenses/LLVM-exception.html
|
"Apache-2.0 WITH LLVM-exception", # https://spdx.org/licenses/LLVM-exception.html
|
||||||
"Apache-2.0", # https://tldrlegal.com/license/apache-license-2.0-(apache-2.0)
|
"Apache-2.0", # https://tldrlegal.com/license/apache-license-2.0-(apache-2.0)
|
||||||
|
|
@ -52,11 +44,16 @@ allow = [
|
||||||
"CC0-1.0", # https://creativecommons.org/publicdomain/zero/1.0/
|
"CC0-1.0", # https://creativecommons.org/publicdomain/zero/1.0/
|
||||||
"ISC", # https://tldrlegal.com/license/-isc-license
|
"ISC", # https://tldrlegal.com/license/-isc-license
|
||||||
"LicenseRef-UFL-1.0", # https://tldrlegal.com/license/ubuntu-font-license,-1.0 - no official SPDX, see https://github.com/emilk/egui/issues/2321
|
"LicenseRef-UFL-1.0", # https://tldrlegal.com/license/ubuntu-font-license,-1.0 - no official SPDX, see https://github.com/emilk/egui/issues/2321
|
||||||
"MIT-0", # https://choosealicense.com/licenses/mit-0/
|
|
||||||
"MIT", # https://tldrlegal.com/license/mit-license
|
"MIT", # https://tldrlegal.com/license/mit-license
|
||||||
|
"MIT-0", # https://choosealicense.com/licenses/mit-0/
|
||||||
"MPL-2.0", # https://www.mozilla.org/en-US/MPL/2.0/FAQ/ - see Q11. Used by webpki-roots on Linux.
|
"MPL-2.0", # https://www.mozilla.org/en-US/MPL/2.0/FAQ/ - see Q11. Used by webpki-roots on Linux.
|
||||||
"OFL-1.1", # https://spdx.org/licenses/OFL-1.1.html
|
"OFL-1.1", # https://spdx.org/licenses/OFL-1.1.html
|
||||||
"OpenSSL", # https://www.openssl.org/source/license.html - used on Linux
|
"OpenSSL", # https://www.openssl.org/source/license.html - used on Linux
|
||||||
"Unicode-DFS-2016", # https://spdx.org/licenses/Unicode-DFS-2016.html
|
"Unicode-DFS-2016", # https://spdx.org/licenses/Unicode-DFS-2016.html
|
||||||
"Zlib", # https://tldrlegal.com/license/zlib-libpng-license-(zlib)
|
"Zlib", # https://tldrlegal.com/license/zlib-libpng-license-(zlib)
|
||||||
]
|
]
|
||||||
|
allow-osi-fsf-free = "neither"
|
||||||
|
confidence-threshold = 0.92 # We want really high confidence when inferring licenses from text
|
||||||
|
copyleft = "deny"
|
||||||
|
private = { ignore = true }
|
||||||
|
unlicensed = "deny"
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,26 @@
|
||||||
[package]
|
[package]
|
||||||
name = "dpi"
|
|
||||||
version = "0.1.1"
|
|
||||||
description = "Types for handling UI scaling"
|
|
||||||
keywords = ["DPI", "HiDPI", "scale-factor"]
|
|
||||||
categories = ["gui"]
|
categories = ["gui"]
|
||||||
rust-version.workspace = true
|
description = "Types for handling UI scaling"
|
||||||
repository.workspace = true
|
|
||||||
license.workspace = true
|
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
|
keywords = ["DPI", "HiDPI", "scale-factor"]
|
||||||
|
license.workspace = true
|
||||||
|
name = "dpi"
|
||||||
|
repository.workspace = true
|
||||||
|
rust-version.workspace = true
|
||||||
|
version = "0.1.1"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
serde = ["dep:serde"]
|
|
||||||
mint = ["dep:mint"]
|
mint = ["dep:mint"]
|
||||||
|
serde = ["dep:serde"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { workspace = true, optional = true }
|
|
||||||
mint = { workspace = true, optional = true }
|
mint = { workspace = true, optional = true }
|
||||||
|
serde = { workspace = true, optional = true }
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
features = ["serde", "mint"]
|
features = ["mint", "serde"]
|
||||||
# These are all tested in CI
|
# These are all tested in CI
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
targets = [
|
targets = [
|
||||||
# Windows
|
# Windows
|
||||||
"i686-pc-windows-msvc",
|
"i686-pc-windows-msvc",
|
||||||
|
|
@ -36,4 +37,3 @@ targets = [
|
||||||
# Web
|
# Web
|
||||||
"wasm32-unknown-unknown",
|
"wasm32-unknown-unknown",
|
||||||
]
|
]
|
||||||
rustdoc-args = ["--cfg", "docsrs"]
|
|
||||||
|
|
|
||||||
28
rustfmt.toml
28
rustfmt.toml
|
|
@ -1,20 +1,20 @@
|
||||||
format_code_in_doc_comments = true
|
comment_width = 100
|
||||||
match_block_trailing_comma = true
|
|
||||||
condense_wildcard_suffixes = true
|
condense_wildcard_suffixes = true
|
||||||
use_field_init_shorthand = true
|
error_on_unformatted = true
|
||||||
|
format_code_in_doc_comments = true
|
||||||
|
format_macro_bodies = true
|
||||||
|
format_macro_matchers = true
|
||||||
|
format_strings = true
|
||||||
|
group_imports = "StdExternalCrate"
|
||||||
|
hex_literal_case = "Lower"
|
||||||
|
imports_granularity = "Module"
|
||||||
|
match_block_trailing_comma = true
|
||||||
|
newline_style = "Unix"
|
||||||
|
normalize_comments = true
|
||||||
normalize_doc_attributes = true
|
normalize_doc_attributes = true
|
||||||
overflow_delimited_expr = true
|
overflow_delimited_expr = true
|
||||||
imports_granularity = "Module"
|
|
||||||
use_small_heuristics = "Max"
|
|
||||||
format_macro_matchers = true
|
|
||||||
error_on_unformatted = true
|
|
||||||
format_macro_bodies = true
|
|
||||||
hex_literal_case = "Lower"
|
|
||||||
normalize_comments = true
|
|
||||||
group_imports = "StdExternalCrate"
|
|
||||||
# Some macros break with this.
|
# Some macros break with this.
|
||||||
reorder_impl_items = false
|
reorder_impl_items = false
|
||||||
newline_style = "Unix"
|
use_field_init_shorthand = true
|
||||||
format_strings = true
|
use_small_heuristics = "Max"
|
||||||
wrap_comments = true
|
wrap_comments = true
|
||||||
comment_width = 100
|
|
||||||
|
|
|
||||||
5
taplo.toml
Normal file
5
taplo.toml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
[formatting]
|
||||||
|
allowed_blank_lines = 1
|
||||||
|
column_width = 100
|
||||||
|
indent_string = ' '
|
||||||
|
reorder_keys = true
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# documentation: https://github.com/crate-ci/typos/blob/master/docs/reference.md
|
# documentation: https://github.com/crate-ci/typos/blob/master/docs/reference.md
|
||||||
|
|
||||||
[default.extend-identifiers]
|
[default.extend-identifiers]
|
||||||
ptd = "ptd" # From windows_sys::Win32::System::Com::FORMATETC { ptd, ..}
|
|
||||||
TME_LEAVE = "TME_LEAVE" # From windows_sys::Win32::UI::Input::KeyboardAndMouse::TME_LEAVE
|
TME_LEAVE = "TME_LEAVE" # From windows_sys::Win32::UI::Input::KeyboardAndMouse::TME_LEAVE
|
||||||
requestor = "requestor" # From x11_dl::xlib::XSelectionEvent { requestor ..}
|
|
||||||
XF86_Calculater = "XF86_Calculater" # From xkbcommon_dl::keysyms::XF86_Calculater
|
XF86_Calculater = "XF86_Calculater" # From xkbcommon_dl::keysyms::XF86_Calculater
|
||||||
|
ptd = "ptd" # From windows_sys::Win32::System::Com::FORMATETC { ptd, ..}
|
||||||
|
requestor = "requestor" # From x11_dl::xlib::XSelectionEvent { requestor ..}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue