├── .github └── workflows │ └── rust.yml ├── .gitignore ├── Cargo.toml ├── LICENSE.txt ├── README.md ├── TODO.md ├── src ├── alias.rs ├── glob.rs ├── icon.rs ├── lib.rs ├── magic.rs └── parent.rs └── test_files ├── files ├── empty ├── empty.json ├── example.ttl ├── gp ├── launcher ├── no_html_tags.html ├── rust-logo.png ├── rust-logo.svg ├── script └── text ├── mime ├── XMLnamespaces ├── aliases ├── generic-icons ├── globs ├── globs2 ├── icons ├── magic ├── mime.cache ├── subclasses └── types └── parser ├── many_rules ├── rule_with_range ├── rule_with_ws ├── single_entry └── single_rule /.github/workflows/rust.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/.github/workflows/rust.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | **/*.rs.bk 3 | Cargo.lock 4 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/README.md -------------------------------------------------------------------------------- /TODO.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/TODO.md -------------------------------------------------------------------------------- /src/alias.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/src/alias.rs -------------------------------------------------------------------------------- /src/glob.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/src/glob.rs -------------------------------------------------------------------------------- /src/icon.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/src/icon.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/magic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/src/magic.rs -------------------------------------------------------------------------------- /src/parent.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/src/parent.rs -------------------------------------------------------------------------------- /test_files/files/empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/files/empty.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/files/example.ttl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/files/example.ttl -------------------------------------------------------------------------------- /test_files/files/gp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/files/gp -------------------------------------------------------------------------------- /test_files/files/launcher: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/files/launcher -------------------------------------------------------------------------------- /test_files/files/no_html_tags.html: -------------------------------------------------------------------------------- 1 |

Hello World!

2 | -------------------------------------------------------------------------------- /test_files/files/rust-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/files/rust-logo.png -------------------------------------------------------------------------------- /test_files/files/rust-logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/files/rust-logo.svg -------------------------------------------------------------------------------- /test_files/files/script: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo "Hello" 4 | -------------------------------------------------------------------------------- /test_files/files/text: -------------------------------------------------------------------------------- 1 | Text only file 2 | -------------------------------------------------------------------------------- /test_files/mime/XMLnamespaces: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/mime/XMLnamespaces -------------------------------------------------------------------------------- /test_files/mime/aliases: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/mime/aliases -------------------------------------------------------------------------------- /test_files/mime/generic-icons: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/mime/generic-icons -------------------------------------------------------------------------------- /test_files/mime/globs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/mime/globs -------------------------------------------------------------------------------- /test_files/mime/globs2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/mime/globs2 -------------------------------------------------------------------------------- /test_files/mime/icons: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_files/mime/magic: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/mime/magic -------------------------------------------------------------------------------- /test_files/mime/mime.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/mime/mime.cache -------------------------------------------------------------------------------- /test_files/mime/subclasses: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/mime/subclasses -------------------------------------------------------------------------------- /test_files/mime/types: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/mime/types -------------------------------------------------------------------------------- /test_files/parser/many_rules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/parser/many_rules -------------------------------------------------------------------------------- /test_files/parser/rule_with_range: -------------------------------------------------------------------------------- 1 | >0="+65 2 | -------------------------------------------------------------------------------- /test_files/parser/rule_with_ws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ebassi/xdg-mime-rs/HEAD/test_files/parser/rule_with_ws -------------------------------------------------------------------------------- /test_files/parser/single_entry: -------------------------------------------------------------------------------- 1 | [50:application/x-yaml] 2 | >0=%YAML 3 | 4 | -------------------------------------------------------------------------------- /test_files/parser/single_rule: -------------------------------------------------------------------------------- 1 | >0=%YAML 2 | 3 | --------------------------------------------------------------------------------