You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "songwei163 (via GitHub)" <gi...@apache.org> on 2024/02/22 11:07:52 UTC

[PR] To fix the compilation failure issue of Rust RocketMQ SDK version 5.0.0, [rocketmq-clients]

songwei163 opened a new pull request, #685:
URL: https://github.com/apache/rocketmq-clients/pull/685

   `weisong@bj-dl-016:~/work/xremote/server/notification$ cargo check
       Checking rocketmq v5.0.0
   error[E0599]: no function or associated item named `now_local` found for struct `OffsetDateTime` in the current scope
      --> /home/weisong/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rocketmq-5.0.0/src/session.rs:253:48
       |
   253 |         let date_time_result = OffsetDateTime::now_local();
       |                                                ^^^^^^^^^
       |                                                |
       |                                                function or associated item not found in `OffsetDateTime`
       |                                                help: there is an associated function with a similar name: `now_utc`
   
   For more information about this error, try `rustc --explain E0599`.
   error: could not compile `rocketmq` (lib) due to previous error`
   To fix the compilation failure issue of Rust RocketMQ SDK version 5.0.0, the root cause is that the version of the time library is limited to 0.3, but the version 0.3.34 is being used. The now_local method requires adding the feature "local-offset".


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] To fix the compilation failure issue of Rust RocketMQ SDK version 5.0.0 [rocketmq-clients]

Posted by "songwei163 (via GitHub)" <gi...@apache.org>.
songwei163 closed pull request #685: To fix the compilation failure issue of Rust RocketMQ SDK version 5.0.0 
URL: https://github.com/apache/rocketmq-clients/pull/685


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org