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

chore: release #122

Merged
merged 1 commit into from
Jul 11, 2023
Merged

chore: release #122

merged 1 commit into from
Jul 11, 2023

Conversation

github-actions[bot]
Copy link
Contributor

🤖 New release

  • rasn: 0.7.0 -> 0.8.0 (⚠️ API breaking changes)
  • rasn-derive: 0.6.0 -> 0.6.1
  • rasn-pkix: 0.7.0 -> 0.8.0 (✓ API compatible changes)
  • rasn-cap: 0.7.0 -> 0.8.0
  • rasn-cms: 0.7.0 -> 0.8.0 (✓ API compatible changes)
  • rasn-kerberos: 0.7.0 -> 0.8.0 (✓ API compatible changes)
  • rasn-ldap: 0.7.0 -> 0.8.0 (✓ API compatible changes)
  • rasn-mib: 0.7.0 -> 0.8.0 (✓ API compatible changes)
  • rasn-smi: 0.7.0 -> 0.8.0 (✓ API compatible changes)
  • rasn-ocsp: 0.7.0 -> 0.8.0 (✓ API compatible changes)
  • rasn-smime: 0.7.0 -> 0.8.0 (✓ API compatible changes)
  • rasn-snmp: 0.7.0 -> 0.8.0 (✓ API compatible changes)

⚠️ rasn breaking changes

--- failure enum_variant_missing: pub enum variant removed or renamed ---

Description:
A publicly-visible enum has at least one variant that is no longer available under its prior name. It may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-check/tree/v0.22.0/src/lints/enum_variant_missing.ron

Failed in:
  variant Open::BmpString, previously in file /tmp/.tmpE02f80/rasn/src/types/open.rs:10
  variant Open::Ia5String, previously in file /tmp/.tmpE02f80/rasn/src/types/open.rs:13
  variant Open::PrintableString, previously in file /tmp/.tmpE02f80/rasn/src/types/open.rs:18
  variant Open::BmpString, previously in file /tmp/.tmpE02f80/rasn/src/types/open.rs:10
  variant Open::Ia5String, previously in file /tmp/.tmpE02f80/rasn/src/types/open.rs:13
  variant Open::PrintableString, previously in file /tmp/.tmpE02f80/rasn/src/types/open.rs:18
Changelog

rasn

0.8.0 - 2023-07-11

Fixed

  • fix/AttributeCertificateValidityPeriod pub fields
  • fixing kdc/as rep application tag
  • fix explicit prefix decode & encode for macros
  • fix errors in Kerberos OTP
  • fix est
  • fix missing trait in test
  • fix snmp tests
  • fix path dep versions
  • fixed implicit tagging of sequences
  • fix kws
  • fix
  • fix missing pieces for derive

Other

  • Create release-plz.yaml
  • Add size comparison example
  • Add constraints to PKIX
  • Update README.md
  • Update README.md
  • Update README.md
  • clippy
  • Implement Aligned Encoding Rules (APER)
  • Fix tag on PKIX CRL extension (#121)
  • Use workspace metadata
  • Implement Unpacked Encoding Rules (UPER)
  • Updates for SHA AlgorithmIdentifier Oids; use == for ConstOid and ObjectIdentifier (#120)
  • Look at data string and pick best guess parse format. Does not yet ha… (#118)
  • Disable *android
  • Disable mips*
  • Fix chrono deprecation warning
  • Release 0.7.0
  • Trust Anchors according to RFC 5914 added, including Oid for new content type. Passes cargo test, but no new specific tests added (#116)
  • Allow buffer reuse in Encoder (#106)
  • Fixes #97 Update SNMP v2 module to better match RFC 3416 (#104)
  • Added Microsoft Authenticode structures (#102)
  • Release 0.6.1
  • Bugfix for indefinite Any parsing, fixes #66 (#95)
  • Release 0.6.0
  • very very basic compiler implementation (#92)
  • Update rust.yml
  • add old compiler
  • Convert Result in macros to core::result::Result
  • Make AttributeCertificateClearAttributes fields public
  • Add:
  • Release 0.5.3
  • cleaning as_req test
  • adding as_rep test
  • making KrbCredInfo tags explicit
  • making EncryptedData tags explicit
  • Release 0.5.2
  • fmt
  • Account for every possible position of #[tag(explicit)]
  • Add repository field to rasn-pkix
  • Release 0.5.1
  • updating test to full as_req
  • fmt
  • Update dependnencies
  • More explicit prefix macro fixes
  • Update deps
  • Fix explicit tagging in kerberos
  • Fix explicit tag parsing
  • Fixes #67. Fix SHA1_RSA OID typo and add RSAES_OAEP OID
  • Add pkcs7 compat module.
  • Update README.md
  • Update README.md
  • Update README.md
  • Release 0.5.0
  • Replace static_assertions with 1.57 const assert
  • Fix tests and docs
  • Move the top-level documentation into README.md
  • Rename IntoOpaque to ToOpaque
  • Formatting
  • Add initial implementation of S/MIME
  • Add documentation for OCSP
  • Add documentation to Kerberos
  • Remove OID suffix in CMS
  • Add Attribute Certificate in PKIX
  • Add docs and minor improvements to Kerberos
  • format macros
  • Add more derives for OCSP
  • Add more docs and format CMS
  • Implement IETF RFC 3370 and RFC 4108
  • impl Hash for all types in PKIX
  • impl Hash for Any, and add a bunch more OIDs
  • Fix default parsing and TAG_TREE for SEQUENCE variants
  • Fix long form tag decoding
  • Add support for Kerberos & OCSP, and fix explicit tag codegen
  • Add PersonnelRecord test
  • Add address family numbers
  • Formatting
  • Use ty directly instead of inference in macro default
  • Release 0.4.3
  • Added Decoder::decoded_len method to support stream-oriented protocols
  • Release 0.4.2
  • Added missing pub keyword to some fields
  • Added contstructors for non-exhaustive LDAP structs. Fixes #48.
  • Update README.md
  • Update README.md
  • Update README.md
  • Release 0.4.1
  • Added CMS standard: https://datatracker.ietf.org/doc/html/rfc5652 (#47)
  • Update README.md
  • Fix wording in README.md (#46)
  • Update README.md
  • Release 0.4.0
  • fmt benches
  • Clippy fixes and formatting
  • Add rfc links
  • misc improvements
  • Add more documentation
  • Add DecryptKey OID and prelude module
  • Reformat, and Copy implementations, document, and add convienvience methods for version
  • Add x509 benchmark
  • update dependencies
  • Add new example for RFC 7030 standard (#41)
  • Make is_unique an associated method
  • Add LDAP implementation
  • Update and full test for PKIX certificates
  • refactor field encoding and decoding to be more DRY and use default attribute
  • Fix remaining codec bugs found
  • Switch ObjectIdentifier to using Cow internally
  • Fix explicit prefix encoding
  • Add public methods for Any
  • Update docs and teletex string
  • Add CHOICE Tag alias.
  • More fuzzing fixes
  • Improve error message more
  • Validate constructed bit is present
  • Update fuzzing code
  • Add more derives to SNMP v3 types
  • Add rasn-pkix crate
  • Fix time decoding & encoding
  • Add better error messages for fields and choices
  • Add support for SET and explicit tags to macros
  • Add support for SET decoding
  • Add NumericString alias and add Ord to InstanceOf
  • cleanup tests
  • Add SET encoding
  • Add issue 34 test case, closes #34
  • Update issue 35 test
  • Update README.md
  • Update README.md
  • rm dbg
  • Ensure explict prefix encodes constructed values correctly. Closes #35
  • fmt
  • Add SEQUENCE OF alias
  • Remove unneeded newtype
  • Move OID structure and add more OIDs
  • Add support for ANY type
  • Add support for SET OF types
  • Add all OIDs related to RFC 5280
  • Hide warnings for now
  • Rename Ia5String
  • Add Any type
  • Use wildcard for standards directory
  • Fix option decoding
  • Add SNMPv3 to rasn-snmp. (#33)
  • Add more trait impls
  • Fix derive codegen
  • Fix OID encoding and decoding for BER and DER (#29)
  • Making Implicit and Explicit value's public (#30)
  • Move tagging inside the trait implementations
  • Revert "Make field encoding generation more DRY"
  • Add all OIDs from UsefulDefinitions ASN.1 module
  • Make field encoding generation more DRY
  • Add SNMP fuzzing
  • Fix proc macro struct field codecs
  • Improved README, and automatic_tags
  • Fix tag detection in newtype wrappers
  • Changed slice_range(foo, _, foo.len()) to slice_from(foo, _) (#23)
  • Fix tagged choice variants
  • Small improvements to error messages, and clean up newly-dead tag constant defs (#22)
  • Add proc macros and add trap message test
  • Add docs and tidy up
  • Create TagTree and refactor Tag validation and CHOICE decoding
  • Add iec61850 test
  • Update build.bash
  • Update test.bash
  • Update README.md
  • Release 0.3.1
  • Make SNMP fields public, fixes #14
  • fix some typos (#15)
  • add decription and language
  • Update README.md
  • Remove bad files
  • Release 0.3.0
  • Add more documentation
  • Use IpAddress directly
  • Implement MIB-II, Add #[rasn(delegate)] and #[rasn(default)]
  • Add support for generics in proc macro
  • Move into v1 modules
  • Implement SMIv1 and MIB-1
  • Add initial benchmarks
  • Add more fuzzing input data
  • Add test case
  • Reverted back to stable compatiblity, fixed various issues.
  • Improved various aspects of rasn-macros
  • version bump
  • Add Oid and use const generics for tag
  • Fix docs.rs badge
  • bump version
  • Update rust.yml
  • Release 0.2.1
  • Add a new #[rasn(choice)] field attribute
  • Upgrade bitvec to 0.19.3
  • Upgrade nom to 0.6.0-beta1
  • Update README.md
  • add more docs and licence files
  • Update README.md
  • Update README.md
  • Update README.md
  • Update set_rust_version.bash
  • remove old dependency
  • Release 0.2.0
  • Update rust.yml
  • rm println
  • upgrade nom
  • Update README.md
  • add ci scripts
  • add docs
  • Add metadata to macros crate
  • Add more metadata
  • Create rust.yml
  • more docs
  • Add docs and fix constructed encoding for strings
  • correctly handle indefinite lengths
  • Added more fuzzing fixes
  • Implement DER & CER
  • Implement automatic tagging
  • Implement tagging attribute for all valid positions
  • Refactor tests, add option impl, add docs
  • split up proc macro exports
  • Add static asserts and time types
  • Create README.md
  • Fix more macro bugs and make open type complete
  • fuzzing fixes
  • fmt
  • Implemented initial support for choice enums
  • Add initial macro support for structs and enums
  • Removing .vscode from git history
  • Add encoder impl and tests
  • Add encoder stub
  • Refactor tag out of decode
  • TagValue -> AsnType
  • refactored parser into its own file
  • Fix dependency features
  • Refactor trait and error handling
  • Refactor Decoder trait
  • add string
  • Refactored constructed encoding parsing to be generic
  • Add bitstring
  • add types module
  • Added octet string, null, and object identifier
  • Refactor error handling
  • refactor tag from identifier
  • Add initial ber parser
  • new project

rasn-derive

0.6.1 - 2023-07-11

Other

  • Add constraints to PKIX
  • clippy
  • Implement Unpacked Encoding Rules (UPER)

rasn-pkix

0.8.0 - 2023-07-11

Other

  • Add constraints to PKIX
  • Fix tag on PKIX CRL extension (#121)
  • Use workspace metadata
  • Implement Unpacked Encoding Rules (UPER)
  • Look at data string and pick best guess parse format. Does not yet ha… (#118)

rasn-cap

0.8.0 - 2023-07-11

Other

  • Use workspace metadata
  • Implement Unpacked Encoding Rules (UPER)

rasn-cms

0.8.0 - 2023-07-11

Other

  • Use workspace metadata

rasn-kerberos

0.8.0 - 2023-07-11

Other

  • Use workspace metadata
  • Implement Unpacked Encoding Rules (UPER)

rasn-ldap

0.8.0 - 2023-07-11

Other

  • Use workspace metadata

rasn-mib

0.8.0 - 2023-07-11

Other

  • Use workspace metadata
  • Implement Unpacked Encoding Rules (UPER)

rasn-smi

0.8.0 - 2023-07-11

Other

  • Use workspace metadata
  • Implement Unpacked Encoding Rules (UPER)

rasn-ocsp

0.8.0 - 2023-07-11

Other

  • Use workspace metadata

rasn-smime

0.8.0 - 2023-07-11

Other

  • Use workspace metadata

rasn-snmp

0.8.0 - 2023-07-11

Other

  • Use workspace metadata
  • Implement Unpacked Encoding Rules (UPER)


This PR was generated with release-plz.

@XAMPPRocky XAMPPRocky merged commit 3f30cc6 into main Jul 11, 2023
@sfackler
Copy link

I think rasn-derive needs to be bumped to 0.7.0 rather than 0.6.1:

error[E0407]: method `decode_with_tag_and_constraints` is not a member of trait `crate::Decode`
 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rasn-0.6.1/src/types/open.rs:5:65
  |
5 | #[derive(AsnType, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Decode, Encode)]
  |                                                                 ^^^^^^ not a member of trait `crate::Decode`
  |
  = note: this error originates in the derive macro `Decode` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0407]: method `encode_with_tag_and_constraints` is not a member of trait `crate::Encode`
 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rasn-0.6.1/src/types/open.rs:5:73
  |
5 | #[derive(AsnType, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Decode, Encode)]
  |                                                                         ^^^^^^ not a member of trait `crate::Encode`
  |
  = note: this error originates in the derive macro `Encode` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0405]: cannot find trait `Choice` in module `crate::types`
 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rasn-0.6.1/src/types/open.rs:5:10
  |
5 | #[derive(AsnType, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Decode, Encode)]
  |          ^^^^^^^ not found in `crate::types`
  |
  = note: this error originates in the derive macro `AsnType` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0405]: cannot find trait `DecodeChoice` in module `crate::types`
 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rasn-0.6.1/src/types/open.rs:5:65
  |
5 | #[derive(AsnType, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Decode, Encode)]
  |                                                                 ^^^^^^ not found in `crate::types`
  |
  = note: this error originates in the derive macro `Decode` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0412]: cannot find type `Constraints` in module `crate::types`
 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rasn-0.6.1/src/types/open.rs:5:65
  |
5 | #[derive(AsnType, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Decode, Encode)]
  |                                                                 ^^^^^^ not found in `crate::types`
  |
  = note: this error originates in the derive macro `Decode` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0412]: cannot find type `Constraints` in module `crate::types`
 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rasn-0.6.1/src/types/open.rs:5:73
  |
5 | #[derive(AsnType, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Decode, Encode)]
  |                                                                         ^^^^^^ not found in `crate::types`
  |
  = note: this error originates in the derive macro `Encode` (in Nightly builds, run with -Z macro-backtrace for more info)

@github-actions github-actions bot mentioned this pull request Jul 11, 2023
@XAMPPRocky
Copy link
Collaborator

XAMPPRocky commented Jul 11, 2023

@sfackler Thanks for the heads up! A lot of tooling seemed to caught up on different things, it should be fixed now.

@roperzh
Copy link

roperzh commented Jul 12, 2023

👋 hey @XAMPPRocky, is there a chance that the newer version is still published as 0.6.1? I'm getting the same errors and if I inspect the code downloaded by cargo it seems to be the newer code that got released.

@XAMPPRocky
Copy link
Collaborator

@roperzh It should be 0.8.2 looking at crates.io https://crates.io/crates/rasn-derive

@roperzh
Copy link

roperzh commented Jul 12, 2023

@XAMPPRocky sorry for not being clear! I meant: is there any chance that the published 0.6.1 has the contents of the 0.8.2 release in crates.io?

I'm looking at the files that cargo pulls for rasn-derive 0.6.1, and they seem to be for a newer version.

Context: I have a project that uses 0.6.1 and around the time of the 0.8.2 release, compilation started to fail with the errors described by sfackler above.

@XAMPPRocky
Copy link
Collaborator

@roperzh Ah, I've now yanked that version. Thank you for the report. 🙂

@roperzh
Copy link

roperzh commented Jul 12, 2023

@XAMPPRocky thank you very much 💜 . I can confirm the issue has been fixed

This was referenced Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants