Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gl"
version = "0.14.0"
version = "0.14.1"
authors = [
"Brendan Zabarauskas <bjzaba@yahoo.com.au>",
"Corey Richardson",
Expand All @@ -16,7 +16,7 @@ categories = ["api-bindings", "rendering::graphics-api"]
keywords = ["gl", "egl", "opengl", "khronos"]

[build-dependencies]
gl_generator = { version = "0.14.0", path = "../gl_generator" }
gl_generator = { version = "0.15.0", path = "../gl_generator" }

[dev-dependencies]
glutin = "0.24"
Expand Down
1 change: 1 addition & 0 deletions gl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
clippy::too_many_arguments,
clippy::unused_unit
)]
#![no_std]

include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

Expand Down
2 changes: 1 addition & 1 deletion gl_generator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gl_generator"
version = "0.14.0"
version = "0.15.0"
authors = [
"Brendan Zabarauskas <bjzaba@yahoo.com.au>",
"Corey Richardson",
Expand Down
2 changes: 2 additions & 0 deletions gl_generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ fn main() {
Then use it like this:

```rust
extern crate core; // or #![no_std] for no_std support

mod gl {
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
}
Expand Down
6 changes: 3 additions & 3 deletions gl_generator/generators/debug_struct_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ where
dest,
r#"
mod __gl_imports {{
pub use std::mem;
pub use std::marker::Send;
pub use std::os::raw;
pub use core::mem;
pub use core::marker::Send;
pub use core::ffi as raw;
}}
"#
)
Expand Down
4 changes: 2 additions & 2 deletions gl_generator/generators/global_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ where
dest,
r#"
mod __gl_imports {{
pub use std::mem;
pub use std::os::raw;
pub use core::mem;
pub use core::ffi as raw;
}}
"#
)
Expand Down
4 changes: 2 additions & 2 deletions gl_generator/generators/static_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ where
dest,
r#"
mod __gl_imports {{
pub use std::mem;
pub use std::os::raw;
pub use core::mem;
pub use core::ffi as raw;
}}
"#
)
Expand Down
4 changes: 2 additions & 2 deletions gl_generator/generators/static_struct_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ where
dest,
r#"
mod __gl_imports {{
pub use std::mem;
pub use std::os::raw;
pub use core::mem;
pub use core::ffi as raw;
}}
"#
)
Expand Down
6 changes: 3 additions & 3 deletions gl_generator/generators/struct_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ where
dest,
r#"
mod __gl_imports {{
pub use std::mem;
pub use std::marker::Send;
pub use std::os::raw;
pub use core::mem;
pub use core::marker::Send;
pub use core::ffi as raw;
}}
"#
)
Expand Down
2 changes: 2 additions & 0 deletions tests/test_add_registries/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

extern crate core;

pub mod gl {
#![allow(
clippy::missing_safety_doc,
Expand Down
2 changes: 2 additions & 0 deletions tests/test_gen_symbols/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
clippy::upper_case_acronyms
)]

extern crate core;

use std::os::raw;

include!(concat!(env!("OUT_DIR"), "/test_gen_symbols.rs"));
Expand Down
2 changes: 2 additions & 0 deletions tests/test_no_warnings/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@
clippy::upper_case_acronyms,
)]

extern crate core;

include!(concat!(env!("OUT_DIR"), "/test_no_warnings.rs"));
2 changes: 2 additions & 0 deletions tests/test_symbols/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

extern crate core;

use std::os::raw;

pub mod gl {
Expand Down
2 changes: 2 additions & 0 deletions tests/test_with_extensions/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

extern crate core;

pub mod gl {
#![allow(
clippy::missing_safety_doc,
Expand Down