/ eframe / Cargo.toml
Cargo.toml
 1  [package]
 2  name = "eframe"
 3  version = "0.17.0"
 4  authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
 5  description = "egui framework - write GUI apps that compiles to web and/or natively"
 6  edition = "2021"
 7  rust-version = "1.56"
 8  homepage = "https://github.com/emilk/egui/tree/master/eframe"
 9  license = "MIT OR Apache-2.0"
10  readme = "README.md"
11  repository = "https://github.com/emilk/egui/tree/master/eframe"
12  categories = ["gui", "game-development"]
13  keywords = ["egui", "gui", "gamedev"]
14  include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"]
15  
16  [package.metadata.docs.rs]
17  all-features = true
18  
19  [lib]
20  
21  
22  [features]
23  default = ["default_fonts"]
24  
25  # If set, egui will use `include_bytes!` to bundle some fonts.
26  # If you plan on specifying your own fonts you may disable this feature.
27  default_fonts = ["egui/default_fonts"]
28  
29  # Enable saving app state to disk.
30  persistence = [
31    # we cannot touch egui_glium or egui_glow here due to https://github.com/rust-lang/cargo/issues/8832
32    "egui-winit/persistence",
33    "egui/persistence",
34    "epi/file_storage",
35    "epi/persistence",
36  ]
37  
38  # enable screen reader support (requires `ctx.options().screen_reader = true;`)
39  screen_reader = [
40    # we cannot touch egui_glium or egui_glow here due to https://github.com/rust-lang/cargo/issues/8832
41    "egui-winit/screen_reader",
42    "egui_web/screen_reader",
43  ]
44  
45  dark-light = [ "egui-winit/dark-light"]              # detect dark mode system preference
46  
47  
48  [dependencies]
49  egui = { version = "0.17.0", path = "../egui", default-features = false }
50  epi = { version = "0.17.0", path = "../epi" }
51  
52  # native:
53  [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
54  egui_glow = { version = "0.17.0", path = "../egui_glow", default-features = false, features = [
55    "clipboard",
56    "epi",
57    "links",
58    "winit",
59  ] }
60  egui-winit = { version = "0.17.0", path = "../egui-winit", default-features = false }
61  
62  # web:
63  [target.'cfg(target_arch = "wasm32")'.dependencies]
64  egui_web = { version = "0.17.0", path = "../egui_web", default-features = false }
65  
66  
67  [dev-dependencies]
68  # For examples:
69  egui_extras = { path = "../egui_extras", features = ["image", "svg"] }
70  ehttp = "0.2"
71  glow = "0.11"
72  image = { version = "0.24", default-features = false, features = [
73    "jpeg",
74    "png",
75  ] }
76  poll-promise = "0.1"
77  rfd = "0.8"
78  three-d = { git = "https://github.com/asny/three-d", rev = "fa475673e284e05b2f4e068769dce3ec5bcabc8d", default-features = false } # 2022-03-22