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

derives for ToJava or FromJava assume java is in scope #117

Open
nikomatsakis opened this issue Oct 26, 2023 · 0 comments
Open

derives for ToJava or FromJava assume java is in scope #117

nikomatsakis opened this issue Oct 26, 2023 · 0 comments

Comments

@nikomatsakis
Copy link
Member

While writing out some examples I found that this

#[derive(Debug, duchess::ToJava)] // <-- derive ToJava
#[java(auth.HttpRequest)] // <-- declares the Java class we convert into
pub struct HttpRequest {
    pub verb: String,
    pub path: String,
}

fails to compile unless you have duchess::java in scope, which seems bad

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

No branches or pull requests

1 participant