Fix build.

This commit is contained in:
Stephen Chung 2022-07-28 18:08:21 +08:00
parent 87687ebf25
commit 6fab9f5b63
2 changed files with 5 additions and 5 deletions

View File

@ -7,11 +7,10 @@ use crate::module::FuncInfo;
use crate::plugin::*;
use crate::tokenizer::{is_valid_function_name, Token};
use crate::{Engine, Module, Scope, INT};
use core::fmt::Write;
#[cfg(feature = "no_std")]
use std::prelude::v1::*;
use std::{any::type_name, borrow::Cow, cmp::Ordering, fmt};
use std::{any::type_name, borrow::Cow, cmp::Ordering, fmt, fmt::Write};
impl Engine {
/// _(metadata, internals)_ Return [`Definitions`] that can be used to generate definition files

View File

@ -265,9 +265,6 @@ pub type OptimizationLevel = ();
// Expose internal data structures.
#[cfg(feature = "metadata")]
pub use api::definitions::Definitions;
#[cfg(feature = "internals")]
pub use types::dynamic::{AccessMode, DynamicReadLock, DynamicWriteLock, Variant};
@ -312,6 +309,10 @@ pub use ast::FloatWrapper;
#[cfg(feature = "internals")]
pub use eval::{Caches, FnResolutionCache, FnResolutionCacheEntry, GlobalRuntimeState};
#[cfg(feature = "internals")]
#[cfg(feature = "metadata")]
pub use api::definitions::Definitions;
/// Alias to [`smallvec::SmallVec<[T; 3]>`](https://crates.io/crates/smallvec), which is a
/// specialized [`Vec`] backed by a small, inline, fixed-size array when there are ≤ 3 items stored.
///