1[package]
2name = "glow"
3version = "0.16.0"
4description = "GL on Whatever: a set of bindings to run GL (Open GL, OpenGL ES, and WebGL) anywhere, and avoid target-specific code."
5authors = [
6 "Joshua Groves <josh@joshgroves.com>",
7 "Dzmitry Malyshau <kvarkus@gmail.com>",
8]
9homepage = "https://github.com/grovesNL/glow.git"
10repository = "https://github.com/grovesNL/glow"
11license = "MIT OR Apache-2.0 OR Zlib"
12edition = "2021"
13
14[package.metadata.docs.rs]
15default-target = "x86_64-unknown-linux-gnu"
16targets = [
17 "x86_64-unknown-linux-gnu",
18 "x86_64-apple-darwin",
19 "x86_64-pc-windows-msvc",
20 "i686-unknown-linux-gnu",
21 "i686-pc-windows-msvc",
22 "wasm32-unknown-unknown"
23]
24
25[lib]
26name = "glow"
27path = "src/lib.rs"
28
29[dependencies]
30log = { version = "0.4.16", optional = true }
31
32[features]
33debug_trace_calls = []
34debug_automatic_glGetError = []
35
36[target.'cfg(target_arch = "wasm32")'.dependencies]
37js-sys = "~0.3"
38wasm-bindgen = "~0.2"
39slotmap = "1"
40
41[target.'cfg(target_arch = "wasm32")'.dependencies.web_sys]
42version = "~0.3.60"
43package = "web-sys"
44features = [
45 "Document",
46 "Element",
47 "HtmlCanvasElement",
48 "HtmlImageElement",
49 "HtmlVideoElement",
50 "ImageBitmap",
51 "ImageData",
52 "VideoFrame",
53 "WebGlActiveInfo",
54 "WebGlBuffer",
55 "WebGlFramebuffer",
56 "WebGlProgram",
57 "WebGlQuery",
58 "WebGlRenderbuffer",
59 "WebGlRenderingContext",
60 "WebGl2RenderingContext",
61 "WebGlSampler",
62 "WebGlShader",
63 "WebGlShaderPrecisionFormat",
64 "WebGlSync",
65 "WebGlTexture",
66 "WebGlTransformFeedback",
67 "WebGlUniformLocation",
68 "WebGlVertexArrayObject",
69 "Window",
70
71 "AngleInstancedArrays",
72 "ExtBlendMinmax",
73 "ExtColorBufferFloat",
74 "ExtColorBufferHalfFloat",
75 "ExtDisjointTimerQuery",
76 "ExtFragDepth",
77 "ExtShaderTextureLod",
78 "ExtSRgb",
79 "ExtTextureFilterAnisotropic",
80 "OesElementIndexUint",
81 "OesStandardDerivatives",
82 "OesTextureFloat",
83 "OesTextureFloatLinear",
84 "OesTextureHalfFloat",
85 "OesTextureHalfFloatLinear",
86 "OesVertexArrayObject",
87 "WebglColorBufferFloat",
88 "WebglCompressedTextureAstc",
89 "WebglCompressedTextureEtc",
90 "WebglCompressedTextureEtc1",
91 "WebglCompressedTexturePvrtc",
92 "WebglCompressedTextureS3tc",
93 "WebglCompressedTextureS3tcSrgb",
94 "WebglDebugRendererInfo",
95 "WebglDebugShaders",
96 "WebglDepthTexture",
97 "WebglDrawBuffers",
98 "WebglLoseContext",
99 "OvrMultiview2",
100]
101
102[workspace]
103members = [
104 "examples/hello",
105 "examples/howto",
106]
107