6 releases

0.1.5 Apr 21, 2022
0.1.4 Apr 18, 2022

#460 in Programming languages

MIT license

44KB
1K SLoC

arsc

arsc is a Rust library that provides the ability to parse and write Android resource file (arsc)

[dependencies]
arsc = "0.1"

Compiler support: rustc 1.59+

Example

use arsc::{parse, write};

fn main() -> std::io::Result<()> {
  let arsc = parse("/resources.arsc")?;
  let _ = write(&arsc, "/output.arsc")?;
  Ok(())
}

Getting Started

This section talks about how to compile the project

Prerequisites:

  • Rust 1.59 or above
  • Cargo
  • Git

Compile

cd SOME_DIR
git clone https://github.com/YaxinCheng/arsc.git
cd arsc
cargo build --release


lib.rs:

arsc is a simple library that enables parsing and writing Android resource files (arsc)

Example

use arsc::{parse, write};

fn main() -> std::io::Result<()> {
    let arsc = parse("/resources.arsc")?;
    let _ = write(&arsc, "/output.arsc")?;
    Ok(())
}

Dependencies