Merge #1402
1402: rp: remove pio Cargo feature. r=Dirbaio a=Dirbaio We shouldn't have Cargo features if their only purpose is reduce cold build time a bit. bors r+ Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
This commit is contained in:
		
						commit
						1cf26f0eb3
					
				@ -29,7 +29,6 @@ time-driver = []
 | 
				
			|||||||
rom-func-cache = []
 | 
					rom-func-cache = []
 | 
				
			||||||
intrinsics = []
 | 
					intrinsics = []
 | 
				
			||||||
rom-v2-intrinsics = []
 | 
					rom-v2-intrinsics = []
 | 
				
			||||||
pio = ["dep:pio", "dep:pio-proc"]
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Enable nightly-only features
 | 
					# Enable nightly-only features
 | 
				
			||||||
nightly = ["embassy-executor/nightly", "embedded-hal-1", "embedded-hal-async", "embassy-embedded-hal/nightly", "dep:embassy-usb-driver", "dep:embedded-io"]
 | 
					nightly = ["embassy-executor/nightly", "embedded-hal-1", "embedded-hal-async", "embassy-embedded-hal/nightly", "dep:embassy-usb-driver", "dep:embedded-io"]
 | 
				
			||||||
@ -70,5 +69,5 @@ embedded-hal-async = { version = "=0.2.0-alpha.1", optional = true}
 | 
				
			|||||||
embedded-hal-nb = { version = "=1.0.0-alpha.2", optional = true}
 | 
					embedded-hal-nb = { version = "=1.0.0-alpha.2", optional = true}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
paste = "1.0"
 | 
					paste = "1.0"
 | 
				
			||||||
pio-proc = {version= "0.2", optional = true}
 | 
					pio-proc = {version= "0.2" }
 | 
				
			||||||
pio = {version= "0.2.1", optional = true}
 | 
					pio = {version= "0.2.1" }
 | 
				
			||||||
 | 
				
			|||||||
@ -11,20 +11,16 @@ mod critical_section_impl;
 | 
				
			|||||||
mod intrinsics;
 | 
					mod intrinsics;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pub mod adc;
 | 
					pub mod adc;
 | 
				
			||||||
 | 
					pub mod clocks;
 | 
				
			||||||
pub mod dma;
 | 
					pub mod dma;
 | 
				
			||||||
 | 
					pub mod flash;
 | 
				
			||||||
mod float;
 | 
					mod float;
 | 
				
			||||||
pub mod gpio;
 | 
					pub mod gpio;
 | 
				
			||||||
pub mod i2c;
 | 
					pub mod i2c;
 | 
				
			||||||
pub mod interrupt;
 | 
					pub mod interrupt;
 | 
				
			||||||
 | 
					pub mod multicore;
 | 
				
			||||||
#[cfg(feature = "pio")]
 | 
					 | 
				
			||||||
pub mod pio;
 | 
					 | 
				
			||||||
#[cfg(feature = "pio")]
 | 
					 | 
				
			||||||
pub mod pio_instr_util;
 | 
					 | 
				
			||||||
pub mod pwm;
 | 
					pub mod pwm;
 | 
				
			||||||
#[cfg(feature = "pio")]
 | 
					mod reset;
 | 
				
			||||||
pub mod relocate;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
pub mod rom_data;
 | 
					pub mod rom_data;
 | 
				
			||||||
pub mod rtc;
 | 
					pub mod rtc;
 | 
				
			||||||
pub mod spi;
 | 
					pub mod spi;
 | 
				
			||||||
@ -33,15 +29,15 @@ pub mod timer;
 | 
				
			|||||||
pub mod uart;
 | 
					pub mod uart;
 | 
				
			||||||
#[cfg(feature = "nightly")]
 | 
					#[cfg(feature = "nightly")]
 | 
				
			||||||
pub mod usb;
 | 
					pub mod usb;
 | 
				
			||||||
 | 
					 | 
				
			||||||
pub mod clocks;
 | 
					 | 
				
			||||||
pub mod flash;
 | 
					 | 
				
			||||||
pub mod multicore;
 | 
					 | 
				
			||||||
mod reset;
 | 
					 | 
				
			||||||
pub mod watchdog;
 | 
					pub mod watchdog;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Reexports
 | 
					// PIO
 | 
				
			||||||
 | 
					// TODO: move `pio_instr_util` and `relocate` to inside `pio`
 | 
				
			||||||
 | 
					pub mod pio;
 | 
				
			||||||
 | 
					pub mod pio_instr_util;
 | 
				
			||||||
 | 
					pub mod relocate;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Reexports
 | 
				
			||||||
pub use embassy_cortex_m::executor;
 | 
					pub use embassy_cortex_m::executor;
 | 
				
			||||||
pub use embassy_cortex_m::interrupt::_export::interrupt;
 | 
					pub use embassy_cortex_m::interrupt::_export::interrupt;
 | 
				
			||||||
pub use embassy_hal_common::{into_ref, Peripheral, PeripheralRef};
 | 
					pub use embassy_hal_common::{into_ref, Peripheral, PeripheralRef};
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,7 @@ embassy-embedded-hal = { version = "0.1.0", path = "../../embassy-embedded-hal",
 | 
				
			|||||||
embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt"] }
 | 
					embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt"] }
 | 
				
			||||||
embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "integrated-timers"] }
 | 
					embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "integrated-timers"] }
 | 
				
			||||||
embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["nightly", "unstable-traits", "defmt", "defmt-timestamp-uptime"] }
 | 
					embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["nightly", "unstable-traits", "defmt", "defmt-timestamp-uptime"] }
 | 
				
			||||||
embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver", "pio", "critical-section-impl"] }
 | 
					embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver", "critical-section-impl"] }
 | 
				
			||||||
embassy-usb = { version = "0.1.0", path = "../../embassy-usb", features = ["defmt"] }
 | 
					embassy-usb = { version = "0.1.0", path = "../../embassy-usb", features = ["defmt"] }
 | 
				
			||||||
embassy-net = { version = "0.1.0", path = "../../embassy-net", features = ["defmt", "nightly", "tcp", "dhcpv4", "medium-ethernet"] }
 | 
					embassy-net = { version = "0.1.0", path = "../../embassy-net", features = ["defmt", "nightly", "tcp", "dhcpv4", "medium-ethernet"] }
 | 
				
			||||||
embassy-futures = { version = "0.1.0", path = "../../embassy-futures" }
 | 
					embassy-futures = { version = "0.1.0", path = "../../embassy-futures" }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user