Cargo.toml
1 [package] 2 name = "egui_glow" 3 version = "0.17.0" 4 authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"] 5 description = "Bindings for using egui natively using the glow library" 6 edition = "2021" 7 rust-version = "1.56" 8 homepage = "https://github.com/emilk/egui/tree/master/egui_glow" 9 license = "MIT OR Apache-2.0" 10 readme = "README.md" 11 repository = "https://github.com/emilk/egui/tree/master/egui_glow" 12 categories = ["gui", "game-development"] 13 keywords = ["glow", "egui", "gui", "gamedev"] 14 include = [ 15 "../LICENSE-APACHE", 16 "../LICENSE-MIT", 17 "**/*.rs", 18 "Cargo.toml", 19 "src/shader/*.glsl", 20 ] 21 22 [package.metadata.docs.rs] 23 all-features = true 24 25 26 [features] 27 default = ["clipboard", "default_fonts", "links", "persistence", "winit"] 28 29 # enable cut/copy/paste to OS clipboard. 30 # if disabled a clipboard will be simulated so you can still copy/paste within the egui app. 31 clipboard = ["egui-winit/clipboard"] 32 33 # If set, egui will use `include_bytes!` to bundle some fonts. 34 # If you plan on specifying your own fonts you may disable this feature. 35 default_fonts = ["egui/default_fonts"] 36 37 # enable opening links in a browser when an egui hyperlink is clicked. 38 links = ["egui-winit/links"] 39 40 # enable persisting native window options and egui memory 41 persistence = [ 42 "egui-winit/persistence", 43 "egui/persistence", 44 "epi", # also implied by the lines below, see https://github.com/rust-lang/cargo/issues/8832 45 "epi/file_storage", 46 "epi/persistence", 47 ] 48 49 # experimental support for a screen reader 50 screen_reader = ["egui-winit/screen_reader"] 51 52 # enable glutin/winit integration. 53 # if you want to use glow painter on web disable this feature. 54 winit = ["egui-winit", "glutin"] 55 56 dark-light = ["egui-winit/dark-light"] # detect dark mode system preference 57 58 59 [dependencies] 60 egui = { version = "0.17.0", path = "../egui", default-features = false, features = [ 61 "convert_bytemuck", 62 ] } 63 epi = { version = "0.17.0", path = "../epi", optional = true } 64 65 bytemuck = "1.7" 66 glow = "0.11" 67 memoffset = "0.6" 68 tracing = "0.1" 69 70 [target.'cfg(not(target_arch = "wasm32"))'.dependencies] 71 egui-winit = { version = "0.17.0", path = "../egui-winit", optional = true, default-features = false, features = [ 72 "epi_backend", 73 ] } 74 glutin = { version = "0.28.0", optional = true } 75 76 [target.'cfg(target_arch = "wasm32")'.dependencies] 77 web-sys = { version = "0.3", features = ["console"] } 78 wasm-bindgen = { version = "0.2" }