Skip to content

Commit

Permalink
Merge pull request #761 from schungx/master
Browse files Browse the repository at this point in the history
Fix serde build.
  • Loading branch information
schungx authored Sep 11, 2023
2 parents 7c6ba38 + 01c09be commit 98a1f85
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,20 @@ jobs:
flags:
- ""
- "--features testing-environ,debugging"
- "--features testing-environ,metadata,serde,internals"
- "--features testing-environ,metadata"
- "--features testing-environ,serde"
- "--features testing-environ,decimal"
- "--features testing-environ,no_float,decimal"
- "--features testing-environ,unicode-xid-ident"
- "--features testing-environ,internals"
- "--features testing-environ,decimal,serde,metadata,internals,debugging"
- "--features testing-environ,unchecked,serde,metadata,internals,debugging"
- "--features testing-environ,sync,serde,metadata,internals,debugging"
- "--features testing-environ,no_position,serde,metadata,internals,debugging"
- "--features testing-environ,no_optimize,serde,metadata,internals,debugging"
- "--features testing-environ,no_float,serde,metadata,internals,debugging"
- "--features testing-environ,f32_float,serde,metadata,internals,debugging"
- "--features testing-environ,decimal,serde,metadata,internals,debugging"
- "--features testing-environ,no_custom_syntax,serde,metadata,internals,debugging"
- "--features testing-environ,no_float,decimal"
- "--tests --features testing-environ,only_i32,serde,metadata,internals,debugging"
- "--features testing-environ,only_i64,serde,metadata,internals,debugging"
- "--features testing-environ,no_index,serde,metadata,internals,debugging"
Expand All @@ -63,7 +67,6 @@ jobs:
- "--features testing-environ,no_module,serde,metadata,internals,debugging"
- "--features testing-environ,no_time,serde,metadata,internals,debugging"
- "--features testing-environ,no_closure,serde,metadata,internals,debugging"
- "--features testing-environ,unicode-xid-ident,serde,metadata,internals,debugging"
- "--features testing-environ,sync,no_time,no_function,no_float,no_position,no_optimize,no_module,no_closure,no_custom_syntax,metadata,serde,unchecked,debugging"
- "--features testing-environ,no_time,no_function,no_float,no_position,no_index,no_object,no_optimize,no_module,no_closure,no_custom_syntax,unchecked"
toolchain: [stable]
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Rhai Release Notes
==================

Version 1.16.1
==============

Fixes compilation error when using the `serde` feature with `metadata`.


Version 1.16.0
==============

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = [".", "codegen"]

[package]
name = "rhai"
version = "1.16.0"
version = "1.16.1"
rust-version = "1.66.0"
edition = "2018"
resolver = "2"
Expand Down
2 changes: 1 addition & 1 deletion src/ast/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::prelude::v1::*;
/// A type representing the access mode of a function.
#[derive(Debug, Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[cfg_attr(
feature = "metadata",
feature = "serde",
derive(serde::Serialize, serde::Deserialize),
serde(rename_all = "camelCase")
)]
Expand Down

0 comments on commit 98a1f85

Please sign in to comment.