Initial commit: apt-wrapper - Simple APT transaction wrapper

- Core transaction API with add_package, resolve, commit, rollback
- Version tracking for upgrades/downgrades
- Simple package info with FFI conversion functions
- Comprehensive error handling
- Basic test suite
- Clean, minimal implementation (~326 lines total)
This commit is contained in:
robojerk 2025-09-13 10:02:01 -07:00
commit 7aaefb9957
10 changed files with 761 additions and 0 deletions

19
Cargo.toml Normal file
View file

@ -0,0 +1,19 @@
[package]
name = "apt-wrapper"
version = "0.1.0"
edition = "2021"
authors = ["apt-ostree team"]
description = "A simple DNF-like API wrapper around APT for apt-ostree"
license = "MIT"
repository = "https://github.com/apt-ostree/apt-wrapper"
keywords = ["apt", "package-management", "debian", "ubuntu"]
categories = ["os::linux-apis", "development-tools::build-utils"]
# This is part of the apt-ostree workspace
[dependencies]
anyhow = "1.0"
thiserror = "1.0"
[dev-dependencies]
tempfile = "3.0"