Add $crate:: metavariable to the oid! macro #25
Reference in New Issue
Block a user
Delete Branch "jack/add-crate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This allows using the oid macro without having to import BigUint
A little more context on this: I'm using RustCrypto/RSA which uses a fork of num-bigint and so within my code I already have a
BigUintimported, but it is a different type thansimple_asn1sBigUint. Currently to use theoidmacro I must haveBigUintimported fromsimple_asn1and using that name.But also just ergonomically, if someone is just creating an OID and not otherwise encoding integers there doesn't seem to be any need for them to know that there are bigints under the hood.
https://doc.rust-lang.org/reference/macros-by-example.html#hygiene
Thanks! This and your previous PR are now pushed to crates as v0.5.4.
Awesome thank you!