You don't need extern crate agb; any more

This commit is contained in:
GBA bot 2022-01-04 00:16:25 +00:00
parent e601cc53ca
commit 60e78768a4
19 changed files with 0 additions and 42 deletions

View file

@ -1,7 +1,6 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
extern crate agb;
extern crate alloc; extern crate alloc;
use alloc::boxed::Box; use alloc::boxed::Box;

View file

@ -1,8 +1,6 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
extern crate agb;
use agb::sound; use agb::sound;
#[agb::entry] #[agb::entry]

View file

@ -1,8 +1,6 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
extern crate agb;
use agb::display; use agb::display;
struct Vector2D { struct Vector2D {

View file

@ -1,8 +1,6 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
extern crate agb;
use agb::display; use agb::display;
#[agb::entry] #[agb::entry]

View file

@ -1,7 +1,6 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
extern crate agb;
use agb::{ use agb::{
display::{background::Map, object::ObjectStandard, HEIGHT, WIDTH}, display::{background::Map, object::ObjectStandard, HEIGHT, WIDTH},
input::Button, input::Button,

View file

@ -1,8 +1,6 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
extern crate agb;
use agb::input::{Button, ButtonController, Tri}; use agb::input::{Button, ButtonController, Tri};
use agb::number::Num; use agb::number::Num;
use agb::sound::mixer::SoundChannel; use agb::sound::mixer::SoundChannel;

View file

@ -1,8 +1,6 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
extern crate agb;
use agb::display; use agb::display;
struct Vector2D { struct Vector2D {

View file

@ -1,8 +1,6 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
extern crate agb;
#[agb::entry] #[agb::entry]
fn main() -> ! { fn main() -> ! {
let count = agb::interrupt::Mutex::new(0); let count = agb::interrupt::Mutex::new(0);

View file

@ -1,8 +1,6 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
extern crate agb;
use agb::display; use agb::display;
#[agb::entry] #[agb::entry]

View file

@ -1,8 +1,6 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
extern crate agb;
use agb::sound::mixer::SoundChannel; use agb::sound::mixer::SoundChannel;
use agb::{include_wav, Gba}; use agb::{include_wav, Gba};

View file

@ -1,7 +1,6 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
extern crate agb;
use agb::{display, syscall}; use agb::{display, syscall};
#[agb::entry] #[agb::entry]

View file

@ -1,8 +1,6 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
extern crate agb;
use agb::display::example_logo; use agb::display::example_logo;
#[agb::entry] #[agb::entry]

View file

@ -1,8 +1,6 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
extern crate agb;
use agb::{ use agb::{
display::example_logo, display::example_logo,
interrupt::{Interrupt, Mutex}, interrupt::{Interrupt, Mutex},

View file

@ -27,8 +27,6 @@ const TILE_SPRITE: MemoryMapped1DArray<u32, { 1024 * 8 }> =
/// # #![no_std] /// # #![no_std]
/// # #![no_main] /// # #![no_main]
/// # /// #
/// # extern crate agb;
/// #
/// # use agb::Gba; /// # use agb::Gba;
/// # /// #
/// # #[agb::entry] /// # #[agb::entry]
@ -63,8 +61,6 @@ struct ObjectLoan<'a> {
/// # #![no_std] /// # #![no_std]
/// # #![no_main] /// # #![no_main]
/// # /// #
/// # extern crate agb;
/// #
/// # use agb::Gba; /// # use agb::Gba;
/// use agb::display::object::Size; /// use agb::display::object::Size;
/// ///

View file

@ -122,9 +122,6 @@ pub use agb_image_converter::include_gfx;
/// #![no_std] /// #![no_std]
/// #![no_main] /// #![no_main]
/// ///
/// // Required to set panic handlers
/// extern crate agb;
///
/// use agb::Gba; /// use agb::Gba;
/// ///
/// #[agb::entry] /// #[agb::entry]
@ -198,8 +195,6 @@ static mut GBASINGLE: single::Singleton<Gba> = single::Singleton::new(unsafe { G
/// #![no_std] /// #![no_std]
/// #![no_main] /// #![no_main]
/// ///
/// extern crate agb;
///
/// use agb::Gba; /// use agb::Gba;
/// ///
/// #[agb::entry] /// #[agb::entry]

View file

@ -10,10 +10,6 @@
// which won't be a particularly clear error message. // which won't be a particularly clear error message.
#![no_main] #![no_main]
// This is required in order to ensure that the panic handler defined in `agb` is set
// up correctly.
extern crate agb;
use agb::display::object::Size; use agb::display::object::Size;
use agb::Gba; use agb::Gba;

View file

@ -19,7 +19,6 @@ Replace the content of the `main` function with the following:
```rust,ignore ```rust,ignore
# #![no_std] # #![no_std]
# #![no_main] # #![no_main]
# extern crate agb;
# #[agb::entry] # #[agb::entry]
# fn main() -> ! { # fn main() -> ! {
let mut gba = agb::Gba::new(); let mut gba = agb::Gba::new();

View file

@ -1,7 +1,6 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
extern crate agb;
extern crate alloc; extern crate alloc;
mod rng; mod rng;

View file

@ -10,10 +10,6 @@
// which won't be a particularly clear error message. // which won't be a particularly clear error message.
#![no_main] #![no_main]
// This is required in order to ensure that the panic handler defined in `agb` is set
// up correctly.
extern crate agb;
use agb::{display, syscall}; use agb::{display, syscall};
// The main function must take 0 arguments and never return. The agb::entry decorator // The main function must take 0 arguments and never return. The agb::entry decorator