update tar to have different names for errors and pub them

pull/1/head
Able 2022-12-05 00:43:08 -06:00
parent 959a2d1dec
commit caab96d18d
Signed by: able
GPG Key ID: 0BD8B45C30DCA887
3 changed files with 7 additions and 9 deletions

2
Cargo.lock generated
View File

@ -248,7 +248,7 @@ dependencies = [
[[package]]
name = "tar"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"versioning",
]

View File

@ -1,6 +1,6 @@
[package]
name = "tar"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,9 +1,7 @@
#![no_std]
pub const VERSION: versioning::Version = versioning::Version {
major: 0,
minor: 1,
patch: 0,
};
use versioning::Version;
pub const VERSION: Version = Version::new(0, 1, 1);
pub struct Header {
pub filename: [char; 100],
@ -93,7 +91,7 @@ fn from2tar() {
// assert_eq!(array)
}
enum Error {
pub enum TarError {
InvalidChecksum,
InvalidFileData,
InvalidTarFormat,
@ -104,7 +102,7 @@ enum Error {
}
#[derive(Debug)]
enum FileType {
pub enum FileType {
Directory,
Regular,
Other(char),