Closed trouvaille2023 closed 9 months ago
Note that the top of the documentation says the sha2
feature of the rsa
crate must be enabled, but you have not enabled it.
If there are any issues with the official documentation, what is the reference value when using it.
Rust documentation is doctested, and we run those doctests in CI, so the examples are "guaranteed" to work, at least if the relevant features are enabled.
Note that the top of the documentation says the
sha2
feature of thersa
crate must be enabled, but you have not enabled it.If there are any issues with the official documentation, what is the reference value when using it.
Rust documentation is doctested, and we run those doctests in CI, so the examples are "guaranteed" to work, at least if the relevant features are enabled.
Thank you, But I did not see from the official documentation that sha2 needs to be enabled,And When I enable it, it is worked.
I did not see from the official documentation that sha2 needs to be enabled
I did not see from the official documentation that sha2 needs to be enabled
I did not see from the official documentation that sha2 needs to be enabled
My mistake, thank you for your guidance.
The code I copied from the official documentation will also generate errors. If there are any issues with the official documentation, what is the reference value when using it. How can I fix this error?
In the example,
use rsa:: sha2:: {Digest, Sha256};
is used, But the latest version ofrsa
does not includesha2
version: 0.9.6
Official example code:
when I copy:
When I build it: