Skip to content

Commit

Permalink
Merge pull request #4 from neuroglia-io/fix-serde-feature
Browse files Browse the repository at this point in the history
Fix the `map` file by fully qualifying the serde/derive macros
  • Loading branch information
cdavernas authored Jan 22, 2025
2 parents 9d3d77e + 91e501d commit 9729a04
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
${{ runner.os }}-cargo-build-
- name: Build the project
run: cargo build --workspace --all-targets
run: cargo build --workspace --all-targets --features "serde/derive"

- name: Run tests
run: cargo test --workspace --all-targets
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions builders/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "serverless_workflow_builders"
version = "1.0.0-alpha6.1"
version = "1.0.0-alpha6.2"
edition = "2021"
authors = ["The Serverless Workflow Authors <[email protected]>"]
description = "Contains services used to build ServerlessWorkflow workflow definitions programatically"
Expand All @@ -12,6 +12,6 @@ keywords = ["serverless-workflow", "sdk", "builders"]
categories = ["config", "parsing", "data-structures", "api-bindings"]

[dependencies]
serverless_workflow_core = { path = "../core", version = "1.0.0-alpha6.1" }
serverless_workflow_core = { path = "../core", version = "1.0.0-alpha6.2" }
serde_json = "1.0"
serde_yaml = "0.9"
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "serverless_workflow_core"
version = "1.0.0-alpha6.1"
version = "1.0.0-alpha6.2"
edition = "2021"
authors = ["The Serverless Workflow Authors <[email protected]>"]
description = "Contains Serverless Workflow DSL models"
Expand Down
3 changes: 1 addition & 2 deletions core/src/models/map.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
use serde::{Serialize, Deserialize};
use serde_derive::{Deserialize, Serialize};
use std::collections::HashMap;
use std::hash::Hash;

/// Represents an ordered key/value map array
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[derive(Debug, Clone, PartialEq, serde_derive::Serialize, serde_derive::Deserialize)]
#[serde(bound(
serialize = "TKey: Serialize, TValue: Serialize",
deserialize = "TKey: for<'d> Deserialize<'d> + Eq + Hash + Clone + PartialEq, TValue: for<'d> Deserialize<'d> + Clone + PartialEq"
Expand Down

0 comments on commit 9729a04

Please sign in to comment.