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

4
ctru-rs/Cargo.toml

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

1
ctru-rs/src/lib.rs

@ -25,7 +25,6 @@ @@ -25,7 +25,6 @@
#![feature(custom_test_frameworks)]
#![feature(try_trait_v2)]
#![feature(allocator_api)]
#![feature(nonnull_slice_from_raw_parts)]
#![test_runner(test_runner::run)]
#![doc(
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 { @@ -134,7 +134,7 @@ impl<S: Screen> Flush for S {
let framebuffer = self.raw_framebuffer();
// Flush the data array. `self.raw_framebuffer` should get the correct parameters for all kinds of screens
unsafe {
let _ = unsafe {
ctru_sys::GSPGPU_FlushDataCache(
framebuffer.ptr.cast(),
(framebuffer.height * framebuffer.width) as u32,

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

@ -36,7 +36,7 @@ impl RomFS { @@ -36,7 +36,7 @@ impl RomFS {
},
|| {
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 @@ @@ -2,9 +2,13 @@
name = "ctru-sys"
version = "22.2.0+2.2.2-1"
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"
links = "ctru"
edition = "2021"
repository = "https://github.com/rust3ds/ctru-rs"
[dependencies]
libc = { version = "0.2.121", default-features = false }

Loading…
Cancel
Save