Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alias all functions and symbols to a single namespace #37

Closed
adetaylor opened this issue Oct 15, 2020 · 1 comment · Fixed by #74
Closed

Alias all functions and symbols to a single namespace #37

adetaylor opened this issue Oct 15, 2020 · 1 comment · Fixed by #74

Comments

@adetaylor
Copy link
Collaborator

Right now, to use autocxx-generated bindings from Rust, you need to refer to:

  • ffi::cxxbridge::W for struct W
  • ffi::cxxbridge::X for struct X
  • ffi::Y for constant Y
  • ffi::defs::Z for preprocessor symbol Z

(I think).

This all needs tidying up; at least the first two should be aliased so you can refer to them using just ffi::W; ffi::Z.

It might be that ffi also needs to be made changeable in case there are multiple include_cpp macros in a file.

@adetaylor
Copy link
Collaborator Author

C++ namespace support is gradually landing, but currently consists purely of understanding the C++ side of things without attempting to replicate the same namespaces on the Rust side.

Partly I've not done that because we need to finish dtolnay/cxx#353, and partly because we need to finish this item first as well.

@adetaylor adetaylor mentioned this issue Nov 8, 2020
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 a pull request may close this issue.

1 participant