From 5ac33ce64def4a54eeb3a680950ab027eded9952 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 4 Sep 2021 18:43:18 +0800 Subject: [PATCH] Do not export `FloatWrapper` under `no_float`. --- CHANGELOG.md | 6 ++++++ src/lib.rs | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 121f589e..73928b0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ Rhai Release Notes ================== +Version 1.0.5 +============= + +* `FloatWrapper` is no longer erroneously exported under `no_float+internals`. + + Version 1.0.4 ============= diff --git a/src/lib.rs b/src/lib.rs index 614a8fb8..f26ad35b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -227,10 +227,15 @@ pub use token::{InputStream, Token, TokenizeState, TokenizerControl, TokenizerCo #[cfg(feature = "internals")] #[deprecated = "this type is volatile and may change"] pub use ast::{ - ASTNode, BinaryExpr, CustomExpr, Expr, FloatWrapper, FnCallExpr, FnCallHashes, Ident, - OpAssignment, OptionFlags, ReturnType, ScriptFnDef, Stmt, StmtBlock, AST_OPTION_FLAGS::*, + ASTNode, BinaryExpr, CustomExpr, Expr, FnCallExpr, FnCallHashes, Ident, OpAssignment, + OptionFlags, ReturnType, ScriptFnDef, Stmt, StmtBlock, AST_OPTION_FLAGS::*, }; +#[cfg(feature = "internals")] +#[cfg(not(feature = "no_float"))] +#[deprecated = "this type is volatile and may change"] +pub use ast::FloatWrapper; + #[cfg(feature = "internals")] #[deprecated = "this type is volatile and may change"] pub use engine::{EvalState, FnResolutionCache, FnResolutionCacheEntry, Imports};