Skip to content

bindgen: Add -no-namespaced-constants option.#12

Merged
bors-servo merged 3 commits into
rust-lang:masterfrom
emilio:no-ns-constants
Jul 10, 2016
Merged

bindgen: Add -no-namespaced-constants option.#12
bors-servo merged 3 commits into
rust-lang:masterfrom
emilio:no-ns-constants

Conversation

@emilio

@emilio emilio commented Jul 5, 2016

Copy link
Copy Markdown
Contributor

In the future we might want to mangle them, but meanwhile...

This is needed for stylo, r? @nox

emilio added 3 commits July 5, 2016 09:54
Needed (at least for now, we might do mangling if necessary) for stylo, where
bringing in DOM types makes us include a lot of namespaced constants they use
for convenience, that end up with conflicting names.
Comment thread src/lib.rs
pub derive_debug: bool,
/// Wether to generate C++ class constants.
pub class_constants: bool,
/// Wether to generate names that are **directly** under namespaces.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spelling

@nox

nox commented Jul 10, 2016

Copy link
Copy Markdown
Contributor

@bors-servo r+

@bors-servo

Copy link
Copy Markdown

📌 Commit d3a6796 has been approved by nox

@bors-servo

Copy link
Copy Markdown

⌛ Testing commit d3a6796 with merge 97a6593...

bors-servo pushed a commit that referenced this pull request Jul 10, 2016
bindgen: Add -no-namespaced-constants option.

In the future we might want to mangle them, but meanwhile...

This is needed for stylo, r? @nox
@bors-servo

Copy link
Copy Markdown

☀️ Test successful - travis

@bors-servo bors-servo merged commit d3a6796 into rust-lang:master Jul 10, 2016
@jvo203 jvo203 mentioned this pull request Jan 27, 2019
tchebb pushed a commit to tchebb/rust-bindgen that referenced this pull request Mar 17, 2025
…-to-callbacks

Switch from attributes to callbacks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants