forked from libre-chip/fayalite
move Value derive macro re-export to same place as Value trait
This commit is contained in:
parent
6a5f1b8af1
commit
d610858144
|
@ -102,7 +102,7 @@ impl CanonicalValue for Clock {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash, crate::Value)]
|
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash, Value)]
|
||||||
#[hdl(fixed_type, outline_generated)]
|
#[hdl(fixed_type, outline_generated)]
|
||||||
pub struct ClockDomain {
|
pub struct ClockDomain {
|
||||||
pub clock: Clock,
|
pub clock: Clock,
|
||||||
|
|
|
@ -611,7 +611,7 @@ impl CanonicalValue for DynEnum {
|
||||||
|
|
||||||
mod impl_option {
|
mod impl_option {
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[derive(crate::Value)]
|
#[derive(crate::ty::Value)]
|
||||||
#[hdl(target(std::option::Option), connect_inexact, outline_generated)]
|
#[hdl(target(std::option::Option), connect_inexact, outline_generated)]
|
||||||
pub enum Option<T> {
|
pub enum Option<T> {
|
||||||
None,
|
None,
|
||||||
|
|
|
@ -5,7 +5,7 @@ extern crate self as fayalite;
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub use std as __std;
|
pub use std as __std;
|
||||||
|
|
||||||
pub use fayalite_proc_macros::{hdl_module, Value};
|
pub use fayalite_proc_macros::hdl_module;
|
||||||
|
|
||||||
pub mod annotations;
|
pub mod annotations;
|
||||||
pub mod array;
|
pub mod array;
|
||||||
|
|
|
@ -28,7 +28,7 @@ use std::{
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub use crate::Value;
|
pub use fayalite_proc_macros::Value;
|
||||||
|
|
||||||
mod sealed {
|
mod sealed {
|
||||||
pub trait Sealed {}
|
pub trait Sealed {}
|
||||||
|
|
|
@ -12,7 +12,7 @@ use fayalite::{
|
||||||
module::transform::simplify_enums::{simplify_enums, SimplifyEnumsKind},
|
module::transform::simplify_enums::{simplify_enums, SimplifyEnumsKind},
|
||||||
reset::{SyncReset, ToReset},
|
reset::{SyncReset, ToReset},
|
||||||
source_location::SourceLocation,
|
source_location::SourceLocation,
|
||||||
Value,
|
ty::Value,
|
||||||
};
|
};
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// SPDX-License-Identifier: LGPL-3.0-or-later
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
||||||
// See Notices.txt for copyright information
|
// See Notices.txt for copyright information
|
||||||
use fayalite::Value;
|
use fayalite::ty::Value;
|
||||||
|
|
||||||
#[derive(Value)]
|
#[derive(Value)]
|
||||||
union U {
|
union U {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// SPDX-License-Identifier: LGPL-3.0-or-later
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
||||||
// See Notices.txt for copyright information
|
// See Notices.txt for copyright information
|
||||||
use fayalite::{int::UInt, Value};
|
use fayalite::{int::UInt, ty::Value};
|
||||||
|
|
||||||
#[derive(Value, Clone, Hash, PartialEq, Eq, Debug)]
|
#[derive(Value, Clone, Hash, PartialEq, Eq, Debug)]
|
||||||
#[hdl(outline_generated)]
|
#[hdl(outline_generated)]
|
||||||
|
|
Loading…
Reference in a new issue