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
					
				
					 7 changed files with 7 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -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)]
 | 
			
		||||
pub struct ClockDomain {
 | 
			
		||||
    pub clock: Clock,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -611,7 +611,7 @@ impl CanonicalValue for DynEnum {
 | 
			
		|||
 | 
			
		||||
mod impl_option {
 | 
			
		||||
    #[allow(dead_code)]
 | 
			
		||||
    #[derive(crate::Value)]
 | 
			
		||||
    #[derive(crate::ty::Value)]
 | 
			
		||||
    #[hdl(target(std::option::Option), connect_inexact, outline_generated)]
 | 
			
		||||
    pub enum Option<T> {
 | 
			
		||||
        None,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,7 @@ extern crate self as fayalite;
 | 
			
		|||
#[doc(hidden)]
 | 
			
		||||
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 array;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,7 +28,7 @@ use std::{
 | 
			
		|||
    sync::Arc,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
pub use crate::Value;
 | 
			
		||||
pub use fayalite_proc_macros::Value;
 | 
			
		||||
 | 
			
		||||
mod sealed {
 | 
			
		||||
    pub trait Sealed {}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,7 +12,7 @@ use fayalite::{
 | 
			
		|||
    module::transform::simplify_enums::{simplify_enums, SimplifyEnumsKind},
 | 
			
		||||
    reset::{SyncReset, ToReset},
 | 
			
		||||
    source_location::SourceLocation,
 | 
			
		||||
    Value,
 | 
			
		||||
    ty::Value,
 | 
			
		||||
};
 | 
			
		||||
use serde_json::json;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
// SPDX-License-Identifier: LGPL-3.0-or-later
 | 
			
		||||
// See Notices.txt for copyright information
 | 
			
		||||
use fayalite::Value;
 | 
			
		||||
use fayalite::ty::Value;
 | 
			
		||||
 | 
			
		||||
#[derive(Value)]
 | 
			
		||||
union U {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
// SPDX-License-Identifier: LGPL-3.0-or-later
 | 
			
		||||
// See Notices.txt for copyright information
 | 
			
		||||
use fayalite::{int::UInt, Value};
 | 
			
		||||
use fayalite::{int::UInt, ty::Value};
 | 
			
		||||
 | 
			
		||||
#[derive(Value, Clone, Hash, PartialEq, Eq, Debug)]
 | 
			
		||||
#[hdl(outline_generated)]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue