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

Compilation failed. #1337

Closed
MathieuDutSik opened this issue Apr 4, 2024 · 1 comment · Fixed by #1338
Closed

Compilation failed. #1337

MathieuDutSik opened this issue Apr 4, 2024 · 1 comment · Fixed by #1338

Comments

@MathieuDutSik
Copy link

By doing cargo +1.73.0 build we obtain the error:

   --> core/src/client/async_client/helpers.rs:246:1
    |
246 | / pub(crate) fn build_unsubscribe_message(
247 | |     manager: &mut RequestManager,
248 | |     sub_req_id: Id<'static>,
249 | |     sub_id: SubscriptionId<'static>,
250 | | ) -> Option<RequestMessage> {
    | |___________________________^ can't leak private type
    |
   ::: core/src/client/mod.rs:344:1
    |
344 |   struct RequestMessage {
    |   --------------------- `RequestMessage` declared as private

For more information about this error, try `rustc --explain E0446`.
error: could not compile `jsonrpsee-core` (lib) due to 3 previous errors

On the other hand, the program compiles for version 1.74.0. Maybe there is a way to specify that in the Cargo.toml.

@niklasad1
Copy link
Member

niklasad1 commented Apr 4, 2024

Hmm, weird.

On the other hand, the program compiles for version 1.74.0. Maybe there is a way to specify that in the Cargo.toml.

Yes, https://github.com/paritytech/jsonrpsee/blob/master/Cargo.toml#L24 let's bump it then.

niklasad1 added a commit that referenced this issue Apr 4, 2024
niklasad1 added a commit that referenced this issue Apr 4, 2024
niklasad1 added a commit that referenced this issue Apr 8, 2024
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.

2 participants