Browse Source

Renew manifests and fix warnings

pull/134/head
Andrea Ciliberti 1 year ago
parent
commit
9b97e90484
  1. 1
      Cargo.toml
  2. 4
      ctru-rs/Cargo.toml
  3. 1
      ctru-rs/src/lib.rs
  4. 2
      ctru-rs/src/services/gfx.rs
  5. 2
      ctru-rs/src/services/romfs.rs
  6. 4
      ctru-sys/Cargo.toml

1
Cargo.toml

@ -1,6 +1,7 @@
[workspace] [workspace]
members = ["ctru-rs", "ctru-sys", "ctru-sys/bindgen-ctru-sys"] members = ["ctru-rs", "ctru-sys", "ctru-sys/bindgen-ctru-sys"]
default-members = ["ctru-rs", "ctru-sys"] default-members = ["ctru-rs", "ctru-sys"]
resolver = "2"
[patch.'https://github.com/rust3ds/ctru-rs'] [patch.'https://github.com/rust3ds/ctru-rs']
# Make sure all dependencies use the local ctru-sys package # Make sure all dependencies use the local ctru-sys package

4
ctru-rs/Cargo.toml

@ -1,12 +1,14 @@
[package] [package]
authors = ["Rust3DS Org", "Ronald Kinard <furyhunter600@gmail.com>"] authors = ["Rust3DS Org", "Ronald Kinard <furyhunter600@gmail.com>"]
description = "A safe wrapper around libctru" description = "A safe wrapper around libctru"
keywords = ["3ds", "libctru"]
categories = ["os", "api-bindings"]
license = "Zlib" license = "Zlib"
name = "ctru-rs" name = "ctru-rs"
version = "0.7.1" version = "0.7.1"
edition = "2021" edition = "2021"
repository = "https://github.com/rust3ds/ctru-rs" repository = "https://github.com/rust3ds/ctru-rs"
rust-version = "1.64" rust-version = "1.70"
[lib] [lib]
crate-type = ["rlib"] crate-type = ["rlib"]

1
ctru-rs/src/lib.rs

@ -25,7 +25,6 @@
#![feature(custom_test_frameworks)] #![feature(custom_test_frameworks)]
#![feature(try_trait_v2)] #![feature(try_trait_v2)]
#![feature(allocator_api)] #![feature(allocator_api)]
#![feature(nonnull_slice_from_raw_parts)]
#![test_runner(test_runner::run)] #![test_runner(test_runner::run)]
#![doc( #![doc(
html_favicon_url = "https://user-images.githubusercontent.com/11131775/225929072-2fa1741c-93ae-4b47-9bdf-af70f3d59910.png" html_favicon_url = "https://user-images.githubusercontent.com/11131775/225929072-2fa1741c-93ae-4b47-9bdf-af70f3d59910.png"

2
ctru-rs/src/services/gfx.rs

@ -134,7 +134,7 @@ impl<S: Screen> Flush for S {
let framebuffer = self.raw_framebuffer(); let framebuffer = self.raw_framebuffer();
// Flush the data array. `self.raw_framebuffer` should get the correct parameters for all kinds of screens // Flush the data array. `self.raw_framebuffer` should get the correct parameters for all kinds of screens
unsafe { let _ = unsafe {
ctru_sys::GSPGPU_FlushDataCache( ctru_sys::GSPGPU_FlushDataCache(
framebuffer.ptr.cast(), framebuffer.ptr.cast(),
(framebuffer.height * framebuffer.width) as u32, (framebuffer.height * framebuffer.width) as u32,

2
ctru-rs/src/services/romfs.rs

@ -36,7 +36,7 @@ impl RomFS {
}, },
|| { || {
let mount_name = CStr::from_bytes_with_nul(b"romfs\0").unwrap(); let mount_name = CStr::from_bytes_with_nul(b"romfs\0").unwrap();
unsafe { ctru_sys::romfsUnmount(mount_name.as_ptr()) }; let _ = unsafe { ctru_sys::romfsUnmount(mount_name.as_ptr()) };
}, },
)?; )?;

4
ctru-sys/Cargo.toml

@ -2,9 +2,13 @@
name = "ctru-sys" name = "ctru-sys"
version = "22.2.0+2.2.2-1" version = "22.2.0+2.2.2-1"
authors = [ "Rust3DS Org", "Ronald Kinard <furyhunter600@gmail.com>" ] authors = [ "Rust3DS Org", "Ronald Kinard <furyhunter600@gmail.com>" ]
description = "Raw bindings to libctru"
keywords = ["3ds", "libctru"]
categories = ["os", "external-ffi-bindings", "no-std"]
license = "Zlib" license = "Zlib"
links = "ctru" links = "ctru"
edition = "2021" edition = "2021"
repository = "https://github.com/rust3ds/ctru-rs"
[dependencies] [dependencies]
libc = { version = "0.2.121", default-features = false } libc = { version = "0.2.121", default-features = false }

Loading…
Cancel
Save