Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put custom generator utility functions behind a feature flag
Fixes #392
- Loading branch information
1 parent
038ccca
commit 116623c
Showing
7 changed files
with
81 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[package] | ||
# we don't include some metadata to avoid accidental publishes | ||
name = "test_unstable_api" | ||
version = "0.0.0" | ||
build = "build.rs" | ||
|
||
[lib] | ||
path = "lib.rs" | ||
|
||
[build-dependencies.gl_generator] | ||
path = "../../gl_generator" | ||
features = ["unstable_generator_utils"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright 2015 Brendan Zabarauskas and the gl-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. | ||
|
||
extern crate gl_generator; | ||
|
||
use gl_generator::generators; | ||
|
||
fn main() { | ||
let _ = generators::gen_struct_name; | ||
let _ = generators::gen_enum_item::<Vec<u8>>; | ||
let _ = generators::gen_type_aliases::<Vec<u8>>; | ||
let _ = generators::gen_parameters; | ||
let _ = generators::gen_return_type; | ||
let _ = generators::gen_symbol_name; | ||
let _ = generators::ty::to_rust_ty; | ||
let _ = generators::ty::build_gl_aliases::<Vec<u8>>; | ||
let _ = generators::ty::build_x_aliases::<Vec<u8>>; | ||
let _ = generators::ty::build_glx_aliases::<Vec<u8>>; | ||
let _ = generators::ty::build_win_aliases::<Vec<u8>>; | ||
let _ = generators::ty::build_wgl_aliases::<Vec<u8>>; | ||
let _ = generators::ty::build_egl_aliases::<Vec<u8>>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright 2015 Brendan Zabarauskas and the gl-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. |