Skip to content

Commit

Permalink
Merge pull request #301 from joshuachp/forward/release-v0.5.3
Browse files Browse the repository at this point in the history
Forward/release v0.5.3
  • Loading branch information
harlem88 authored Mar 20, 2024
2 parents 4c6475a + 63d4a73 commit 02da87d
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 10 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,16 @@ jobs:
uses: mozilla-actions/[email protected]
- name: cargo +${{ matrix.msrv }} check
run: cargo check --all-features --workspace
# Run semver-check on release branch push or PR
semver:
if: startsWith(github.base_ref, 'release-') || startsWith(github.ref, 'release-')
name: stable / semver
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install sccache-cache
uses: mozilla-actions/[email protected]
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
release-type: patch
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.5.3] - 2024-03-20
### Added
- Add semver-check for release

### Fixed
- Property reliability as Unique

## [0.6.3] - 2024-02-13

## [0.5.2] - 2024-01-30
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ name = "benchmark"
harness = false

[dependencies]
astarte-device-sdk-derive = { version = "0.6.2", optional = true, path = "./astarte-device-sdk-derive" }
astarte-device-sdk-derive = { version = "=0.6.3", optional = true, path = "./astarte-device-sdk-derive" }
async-trait = "0.1.2"
base64 = "0.21.0"
bson = { version = "2.1.0", features = ["chrono-0_4"] }
Expand Down
2 changes: 2 additions & 0 deletions astarte-device-sdk-derive/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.5.3] - 2024-03-20

## [0.6.3] - 2024-02-13

## [0.5.2] - 2024-01-30
Expand Down
1 change: 0 additions & 1 deletion src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ mod tests {
use p384::{
ecdsa::{signature::Verifier, Signature, VerifyingKey},
pkcs8::DecodePrivateKey,
SecretKey,
};
use x509_cert::{
der::{DecodePem, Encode},
Expand Down
2 changes: 2 additions & 0 deletions src/interface/mapping/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ impl<'a> From<&'a PropertiesMapping> for Mapping<&'a str> {
fn from(value: &'a PropertiesMapping) -> Self {
let mut mapping = Mapping::from(&value.mapping);

// Properties must have have Reliability Unique
mapping.reliability = Reliability::Unique;
mapping.allow_unset = value.allow_unset;

mapping
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ use mock::{MockAsyncClient as AsyncClient, MockEventLoop as EventLoop};
use rumqttc::{AsyncClient, EventLoop};

use std::collections::HashMap;
use std::convert::TryInto;
use std::fmt::{self, Debug};
use std::path::Path;
use std::str::FromStr;
Expand Down
8 changes: 1 addition & 7 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
//! Provides Astarte specific types to be used by the
//! [AstarteDeviceSdk][crate::AstarteDeviceSdk] to transmit/receivedata to/from the Astarte cluster.
use std::convert::TryFrom;

use bson::{Binary, Bson};
use chrono::{DateTime, Utc};
use log::debug;
Expand Down Expand Up @@ -565,12 +563,8 @@ impl TryFrom<BsonConverter> for AstarteType {

#[cfg(test)]
mod test {
use std::convert::TryFrom;
use std::convert::TryInto;

use chrono::{DateTime, TimeZone, Utc};
use chrono::TimeZone;

use crate::interface::MappingType;
use crate::Aggregation;

use super::*;
Expand Down

0 comments on commit 02da87d

Please sign in to comment.