[package]
name = "egui_glium"
version = "0.8.0"
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
description = "Bindings for using egui natively using the glium library"
edition = "2018"
homepage = "https://github.com/emilk/egui"
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/emilk/egui"
categories = ["gui", "game-development"]
keywords = ["glium", "egui", "gui", "gamedev"]
include = [ "**/*.rs", "Cargo.toml"]

[dependencies]
clipboard = "0.5"
egui = { version = "0.8.0", path = "../egui" }
epi = { version = "0.8.0", path = "../epi" }
glium = "0.29"
webbrowser = "0.5"

# feature "http":
ureq = { version = "2.0", optional = true }

# feature "persistence":
directories-next = { version = "2", optional = true }
serde = { version = "1", optional = true }
serde_json = { version = "1", optional = true }

# feature "time"
chrono = { version = "0.4", optional = true }

[features]
default = []
http = ["ureq"]
persistence = [
    "directories-next",
    "egui/persistence",
    "epi/serde_json",
    "epi/serde",
    "serde_json",
    "serde",
]
time = ["chrono"] # for seconds_since_midnight
