# Copyright 2014 The Gfx-rs Developers.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

[package]

name = "gfx_gl"
version = "0.3.0"
build = "build.rs"
description = "OpenGL bindings for gfx, based on gl-rs"
homepage = "https://github.com/gfx-rs/gfx_gl"
repository = "https://github.com/gfx-rs/gfx_gl.git"
license = "Apache-2.0"
authors = ["The Gfx-rs Developers"]

[lib]
name = "gfx_gl"
path = "src/lib.rs"

[build-dependencies]
gl_generator = "0.4"
khronos_api = "0.0"

[dependencies]
gl_common = "0.1"

# Copyright 2014 The Gfx-rs Developers.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

[package]

name = "gfx_gl"
version = "0.3.1"
build = "build.rs"
description = "OpenGL bindings for gfx, based on gl-rs"
homepage = "https://github.com/gfx-rs/gfx_gl"
repository = "https://github.com/gfx-rs/gfx_gl.git"
license = "Apache-2.0"
authors = ["The Gfx-rs Developers"]

[lib]
name = "gfx_gl"
path = "src/lib.rs"

[build-dependencies]
gl_generator = "0.4"
khronos_api = "1.0"

Update khronos api and remove gl_common.
Update khronos api and remove gl_common.

Proposing this again after some more thought and testing.

First, the khronos_api version update is self explanatory; the new version 1.0.0 exists.

Next, regarding the removal of gl_common, the initial motivation was to prevent the gfx crate from compiling both libc 0.2.x and libc 0.1.x.
It was observed that gfx depended on gfx_gl which depended on gl_common.
The idea that gl_common might be unnecessary came when reading this: [https://github.com/bjz/gl-rs/pull/359 "Remove the gl_common crate #359"] (https://github.com/bjz/gl-rs/pull/359).

The gfx crate depends on gfx_gl so to test these changes the following actions were performed on gfx:
cargo build
cargo run --example triangle
cargo run --example cube
cargo run --example deferred
All of the above built successfully and the examples ran successfully.