commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
c1f37513e64e913b7bd22ca48cfac3473925fd5f
Austin Bonander
2022-02-16T21:52:34
fix ordering of mime_types
diff --git a/src/mime_types.rs b/src/mime_types.rs index 9b138df..13c91b7 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -772,8 +772,8 @@ pub static MIME_TYPES: &[(&str, &[&str])] = &[ ("nnd", &["application/vnd.noblenet-directory"]), ("nns", &["application/vnd.noblenet-sealer"]), ("nnw", &["a...
1
1
1
4a93f0bb76d2112458c596426d3e77c9d7306e9f
Austin Bonander
2022-02-16T21:48:12
ttf: add `font/ttf`, `application/x-font-ttf` https://www.rfc-editor.org/rfc/rfc8081.html#section-4.4.2 https://en.wikipedia.org/wiki/TrueType Wikipedia doesn't have a citation for `application/x-font-ttf` (added [December 2019](https://en.wikipedia.org/w/index.php?title=TrueType&diff=prev&oldid=931818759)) but th...
diff --git a/src/mime_types.rs b/src/mime_types.rs index 319e85f..9b138df 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -1224,7 +1224,7 @@ pub static MIME_TYPES: &[(&str, &[&str])] = &[ ("tsd", &["application/timestamped-data"]), ("tsv", &["text/tab-separated-values"]), ("ttc", &["font/collec...
1
1
1
150d23391ca45f52c1e70187e325bcc542d5956a
Austin Bonander
2022-02-16T21:15:54
`chm` to `application/vnd.ms-htmlhelp` https://en.wikipedia.org/wiki/Microsoft_Compiled_HTML_Help closes #70
diff --git a/src/mime_types.rs b/src/mime_types.rs index d077b8c..319e85f 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -175,7 +175,7 @@ pub static MIME_TYPES: &[(&str, &[&str])] = &[ ("cfs", &["application/x-cfs-compressed"]), ("cgm", &["image/cgm"]), ("chat", &["application/x-chat"]), - ...
1
1
1
1d7f04188a512ff596111553b94716e26c1efad5
Austin Bonander
2022-02-16T21:14:06
mime_types: add `audio/mpeg` to mapping for `mp2` closes #69
diff --git a/src/mime_types.rs b/src/mime_types.rs index e19a8c9..d077b8c 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -703,7 +703,7 @@ pub static MIME_TYPES: &[(&str, &[&str])] = &[ ("mods", &["application/mods+xml"]), ("mov", &["video/quicktime"]), ("movie", &["video/x-sgi-movie"]), - (...
1
1
1
492bece6d9b3253aeeb42d78d9358352d66ee935
Christine Dodrill
2020-07-27T13:59:59
Add text/gemini See https://gemini.circumlunar.space/docs/specification.html section 5 for the description of this media type
diff --git a/src/mime_types.rs b/src/mime_types.rs index 0c6b36e..e19a8c9 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -401,6 +401,7 @@ pub static MIME_TYPES: &[(&str, &[&str])] = &[ ("gca", &["application/x-gca-compressed"]), ("gdl", &["model/vnd.gdl"]), ("gdoc", &["application/vnd.google-a...
1
2
0
71eacd4b55d41f1ae87231fc6b707281e581eca3
Nicolas Bigaouette
2020-10-13T18:21:01
Add new mimetype for '.feature' files used in cucumber (Gherkin) Cucumber is a Ruby software used for behavior-driven development (BDD). The tests are written in the "Gherkin" language in text files with the '.feature' extension[^1]. The language description has been archived[^2]. The package `xdg-shared-mime-info` ...
diff --git a/src/mime_types.rs b/src/mime_types.rs index e5537ea..0c6b36e 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -354,6 +354,7 @@ pub static MIME_TYPES: &[(&str, &[&str])] = &[ ("fcs", &["application/vnd.isac.fcs"]), ("fdf", &["application/vnd.fdf"]), ("fe_launch", &["application/vnd.d...
1
1
0
e598aff760f271afd8d8342e033845674b207a68
Alex Kreidler
2020-09-30T18:46:50
Add linked data formats: N-Quads/Triples, Trig See: https://www.iana.org/assignments/media-types/application/n-quads https://www.iana.org/assignments/media-types/application/n-triples https://www.iana.org/assignments/media-types/application/trig
diff --git a/src/mime_types.rs b/src/mime_types.rs index 39fbca4..e5537ea 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -769,9 +769,11 @@ pub static MIME_TYPES: &[(&str, &[&str])] = &[ ("nnd", &["application/vnd.noblenet-directory"]), ("nns", &["application/vnd.noblenet-sealer"]), ("nnw", &["...
1
3
0
c0143b0fc5ecb53ba0166b5b85bee5f9142f617b
Sven-Hendrik Haase
2021-04-18T06:16:44
gz should be application/gzip As defined in http://www.iana.org/assignments/media-types/media-types.xhtml
diff --git a/src/mime_types.rs b/src/mime_types.rs index 071bfd8..39fbca4 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -434,7 +434,7 @@ pub static MIME_TYPES: &[(&str, &[&str])] = &[ ("gv", &["text/vnd.graphviz"]), ("gxf", &["application/gxf"]), ("gxt", &["application/vnd.geonext"]), - ("...
1
1
1
c80a5cf9dda6ced97af59ead542b53f0e15d784d
Casey Rodarmor
2021-05-06T20:31:14
Replace `content-stream` with `octet-stream`
diff --git a/src/lib.rs b/src/lib.rs index 2b504ab..e2563f4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -122,11 +122,11 @@ impl MimeGuess { /// ### Note: HTTP Applications /// For HTTP request and response bodies if a value for the `Content-Type` header /// cannot be determined it might be preferable to ...
1
4
4
e8aca920a27580d036a56239be89039fd4457584
Ririsoft
2020-08-25T08:24:53
early return from option result
diff --git a/src/lib.rs b/src/lib.rs index 75909fa..2b504ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -401,10 +401,7 @@ pub fn get_mime_extensions_str(mut mime_str: &str) -> Option<&'static [&'static } let (top, sub) = { - let split_idx = match mime_str.find('/') { - Some(idx) => idx, - ...
1
7
7
6f536cc758b5d76c893dc18c1bdf7ff76735afcc
Ririsoft
2020-06-11T16:26:49
fix panic in get_mime_extensions_str get_mime_extensions_str should not panic if the mime type does not contains '/' and return None instead.
diff --git a/src/lib.rs b/src/lib.rs index a40c4ec..75909fa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -401,7 +401,10 @@ pub fn get_mime_extensions_str(mut mime_str: &str) -> Option<&'static [&'static } let (top, sub) = { - let split_idx = mime_str.find('/').unwrap(); + let split_idx = match ...
1
10
2
bea27b3f487b9c4bbd01e5c6508cf9e18c94616a
Kan-Ru Chen
2020-08-08T08:06:16
Add AVIF media type registrations The new media type is submitted to IANA but has not been formally published by IANA yet. Both Firefox and Chromium are already using the mime type for AVIF images. Citation: https://aomediacodec.github.io/av1-avif/#mime-registration
diff --git a/src/mime_types.rs b/src/mime_types.rs index 4f28f46..071bfd8 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -102,6 +102,7 @@ pub static MIME_TYPES: &[(&str, &[&str])] = &[ ("atx", &["application/vnd.antix.game-component"]), ("au", &["audio/basic"]), ("avi", &["video/x-msvideo"]), ...
1
1
0
fe0b815e45fe40b9cced06f6b442b2e7024d8abe
Austin Bonander
2020-02-29T00:03:54
`ignore` this code block
diff --git a/src/mime_types.rs b/src/mime_types.rs index 2c8bb01..4f28f46 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -9,7 +9,7 @@ /// If a media type for an extension changed by official IETF RFC, please keep the old entry but add /// the new one before it in the slice literal, e.g.: /// -/// ``` +///...
1
1
1
41e2dee59979d48c2900ed3b900c6a4efbce36d2
Austin Bonander
2020-02-28T22:03:18
bump version to 2.0.3
diff --git a/Cargo.toml b/Cargo.toml index b005800..30b74d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "2.0.2" +version = "2.0.3" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
1
1
8b3c026f67fc3ca896ba94816d022e7ecef739c5
Austin Bonander
2020-02-28T21:57:38
restore `text/x-markdown` for historical reasons pre-IANA registration, this experimental media type was preferred by Markdown author John Gruber http://six.pairlist.net/pipermail/markdown-discuss/2008-February/000966.html
diff --git a/src/mime_types.rs b/src/mime_types.rs index ee23d91..244b4c8 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -1,14 +1,15 @@ -// Probably not exhaustive; keep updated. /// A mapping of known file extensions and their MIME types. /// /// Required to be sorted lexicographically by extension for e...
1
8
7
7b5d650cf28dac4215bc83b0fc5a8eaf89b3549b
Austin Bonander
2020-02-28T21:44:06
bump to 2.0.2
diff --git a/Cargo.toml b/Cargo.toml index 1f969bb..b005800 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "2.0.1" +version = "2.0.2" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
1
1
a893241d85434273aa5a8eb99e5b8c554aa9a85a
Zexbe
2020-02-04T05:33:15
Return correct mime type for md
diff --git a/src/mime_types.rs b/src/mime_types.rs index 7947932..ee23d91 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -649,7 +649,7 @@ pub static MIME_TYPES: &[(&str, &[&str])] = &[ ("mc1", &["application/vnd.medcalcdata"]), ("mcd", &["application/vnd.mcd"]), ("mcurl", &["text/vnd.curl.mcur...
1
1
1
7e3425438945f87a0999c9d82960eea36ae2587b
Robert-André Mauchin
2019-09-13T16:38:32
Bump criterion to 0.3
diff --git a/Cargo.toml b/Cargo.toml index 2c42581..1f969bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ unicase = "2.4.0" #optional = true [dev-dependencies] -criterion = "0.2" +criterion = "0.3" [[example]] name = "rev_map"
1
1
1
3e62c99122069cfec1fa3f7c263b0943f5016b6b
Austin Bonander
2019-08-05T20:48:00
bump patch version
diff --git a/Cargo.toml b/Cargo.toml index 44208b2..2c42581 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "2.0.0" +version = "2.0.1" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
1
1
409a22f61a889e75d6c072dee26a99b5f4330e50
Austin Bonander
2019-08-05T20:23:33
fix intra-doc links
diff --git a/src/lib.rs b/src/lib.rs index f1dc54d..a40c4ec 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,7 +38,7 @@ mod impl_; mod impl_; /// A "guess" of the MIME/Media Type(s) of an extension or path as one or more -/// [`Mime`](::mime::Mime) instances. +/// [`Mime`](struct.Mime.html) instances. /// /// ### ...
1
8
6
4c8d95f2030275a3e92f1103a6fddfee4e8f9c23
Douman
2019-08-05T19:34:05
Correct get_mime_type_str impl
diff --git a/src/lib.rs b/src/lib.rs index ecb985a..f1dc54d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -359,7 +359,7 @@ pub fn get_mime_type_opt(search_ext: &str) -> Option<Mime> { note = "use `from_ext(search_ext).first_raw()` instead" )] pub fn get_mime_type_str(search_ext: &str) -> Option<&'static str> { - ...
1
1
1
d372333cee2522b35f2fd22d5bfb8dc224ae46c1
Douman
2019-08-05T19:05:25
Update deprecation notes for rest
diff --git a/src/lib.rs b/src/lib.rs index 06a7fd9..ecb985a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -316,9 +316,9 @@ pub fn guess_mime_type_opt<P: AsRef<Path>>(path: P) -> Option<Mime> { /// that `path` points to match the MIME type associated with the path's extension. /// /// Take care when processing files wi...
1
4
4
c2732e571214414a2d6ed06e7edad6c376eb25ed
Douman
2019-08-05T18:16:48
Correct guess_mime_type deprecation warning
diff --git a/src/lib.rs b/src/lib.rs index 6182380..06a7fd9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -290,7 +290,7 @@ pub fn from_path<P: AsRef<Path>>(path: P) -> MimeGuess { /// [rfc7231]: https://tools.ietf.org/html/rfc7231#section-3.1.1.5 #[deprecated( since = "2.0.0", - note = "Use `from_path(path).or_...
1
1
1
ea2954db8670b4e7c500871eaeaeb0627b8616af
Austin Bonander
2019-07-30T20:43:19
add citation note to mime_types.rs
diff --git a/src/mime_types.rs b/src/mime_types.rs index 7a858a3..7947932 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -7,6 +7,9 @@ /// order is arbitrary but the first should be the most prevalent by most recent RFC declaration /// or explicit succession of other media types. /// +/// As of release 2.0...
1
3
0
88609bca56776955b7be78b03a80e1e971753412
Austin Bonander
2019-07-25T19:38:10
cleanup code
diff --git a/Cargo.toml b/Cargo.toml index eca2b84..7131d36 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ documentation = "https://docs.rs/mime_guess/" [features] default = ["rev-mappings"] +# FIXME: when `phf` release 0.8.0 is ready # phf-map = ["phf", "phf_codegen"] # generate reverse-mappings fo...
5
3
6
26a2a3560b9eba16738329377cd65da733e5e09e
Austin Bonander
2019-07-19T18:17:14
fix impl_bin_search for --no-default-features
diff --git a/src/impl_bin_search.rs b/src/impl_bin_search.rs index ab8c886..4a1a366 100644 --- a/src/impl_bin_search.rs +++ b/src/impl_bin_search.rs @@ -1,4 +1,5 @@ use unicase::UniCase; + include!("mime_types.rs"); include!(concat!(env!("OUT_DIR"), "/mime_types_generated.rs")); @@ -18,6 +19,7 @@ pub fn get_mime_t...
1
2
0
4a95f6ee7a3a1bb5645a5d8854ad47b762864f45
Austin Bonander
2019-07-19T01:44:40
rename some more methods, expand documentation
diff --git a/benches/benchmark.rs b/benches/benchmark.rs index 337355c..4a7af2e 100644 --- a/benches/benchmark.rs +++ b/benches/benchmark.rs @@ -12,7 +12,7 @@ include!("../src/mime_types.rs"); fn bench_mime_str(c: &mut Criterion) { c.bench_function("from_ext", |b| { for (mime_ext, _) in MIME_TYPES { - ...
2
66
37
de30ce99bddba92bf383cf748237bc4f9099bb7c
Austin Bonander
2019-07-19T01:02:55
first_as_str -> first_raw
diff --git a/src/lib.rs b/src/lib.rs index ea7b8b1..d18f1ae 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -90,13 +90,13 @@ impl MimeGuess { /// /// See [Note: Ordering](#note-ordering) above. pub fn first(&self) -> Option<Mime> { - self.first_as_str().map(expect_mime) + self.first_raw().map(e...
1
3
3
cdc0515babd673011fcf41f5a72bfd9d63c7c7a4
Austin Bonander
2019-07-19T00:56:38
set version to 2.0.0
diff --git a/Cargo.toml b/Cargo.toml index 01463ad..eca2b84 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "2.0.0-alpha.6" +version = "2.0.0" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of...
1
1
1
3786005a16694f3267475272c1151db3c6b20f74
Austin Bonander
2019-07-19T00:56:03
expand documentation more
diff --git a/src/lib.rs b/src/lib.rs index 274b644..ea7b8b1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,6 +2,16 @@ //! //! Uses a static list of file-extension : MIME type mappings. //! +//! ``` +//! # extern crate mime; +//! +//! // the file doesn't have to exist, it just looks at the path +//! let guess = mime_...
1
11
1
ff337546cdbcbcc88214757a7dea3b01faca4fb5
Austin Bonander
2019-07-19T00:52:20
disable phf until we get a release out
diff --git a/Cargo.toml b/Cargo.toml index 506ed79..01463ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ documentation = "https://docs.rs/mime_guess/" [features] default = ["rev-mappings"] +# phf-map = ["phf", "phf_codegen"] # generate reverse-mappings for lookup of extensions by MIME type # defau...
3
39
46
b1f71f504124b4bbcc9eca812a7d34d566e18886
Austin Bonander
2019-07-18T20:18:31
expanding documentation
diff --git a/src/lib.rs b/src/lib.rs index 994251f..274b644 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -159,6 +159,7 @@ impl<'a> IntoIterator for &'a MimeGuess { } } +/// An iterator over the `Mime` types of a `MimeGuess`. #[derive(Clone, Debug)] pub struct Iter(iter::Map<IterRaw, fn(&'static str) -> Mime>);...
1
14
0
76bdc0ecde187d89d9e98da54c6f529cad98871e
Austin Bonander
2019-07-18T20:15:21
fix binary_search implementation
diff --git a/benches/benchmark.rs b/benches/benchmark.rs index 2ae84f7..337355c 100644 --- a/benches/benchmark.rs +++ b/benches/benchmark.rs @@ -6,7 +6,7 @@ use self::criterion::Criterion; use mime_guess::from_ext; -include!("src/mime_types.rs"); +include!("../src/mime_types.rs"); /// WARNING: this may take a w...
5
135
63
7121bd495af67cba547f6bcd57312f833e429bec
Austin Bonander
2019-07-02T01:46:28
WIP make PHF optional (2)
diff --git a/Cargo.toml b/Cargo.toml index c70e6d7..506ed79 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,6 +32,7 @@ unicase = "2.4.0" [build-dependencies.phf_codegen] # version = "0.7.24" git = "https://github.com/sfackler/rust-phf" +optional = true [dev-dependencies] criterion = "0.2" diff --git a/build.rs b...
4
94
35
11b3efeb67eaab94bbdca4b682194f89e4da56af
Austin Bonander
2019-04-30T12:09:09
further prototyping new API
diff --git a/build.rs b/build.rs index c3d3ef8..0866c22 100644 --- a/build.rs +++ b/build.rs @@ -34,13 +34,27 @@ fn main() { fn build_forward_map<W: Write>(out: &mut W) { write!( out, - "static MIME_TYPES: phf::Map<UniCase<&'static str>, &'static str> = " + "static MIME_TYPES: phf::Map<UniC...
3
84
40
6a890b112c1a43261a28141fe58adcde94786bce
Austin Bonander
2019-04-28T17:03:50
WIP prototyping new `MimeGuess` API
diff --git a/src/lib.rs b/src/lib.rs index 6903f02..e7ff03f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,6 +21,7 @@ use unicase::UniCase; use std::ffi::OsStr; use std::path::Path; +use std::{iter, slice}; include!(concat!(env!("OUT_DIR"), "/mime_types_generated.rs")); @@ -44,6 +45,131 @@ macro_rules! try_op...
1
136
14
7232926ef33b3c755e7a26f5a30f4114547b49d5
Austin Bonander
2019-04-28T15:54:15
silence warnings on `AsciiExt`
diff --git a/src/lib.rs b/src/lib.rs index b3674d5..627506e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -221,6 +221,7 @@ mod tests { use super::{get_mime_type, guess_mime_type, MIME_TYPES}; use super::{get_mime_type_opt, guess_mime_type_opt}; use mime::Mime; + #[allow(deprecated, unused_imports)] ...
1
1
0
5b79519943b7fd7c9c53283fa7463d6fef14a5f3
Atul Bhosale
2019-04-25T03:56:31
Format code using 'cargo fmt' (#46)
diff --git a/build.rs b/build.rs index d3596bb..3f44645 100644 --- a/build.rs +++ b/build.rs @@ -5,17 +5,17 @@ use phf_codegen::Map as PhfMap; use unicase::UniCase; +use std::env; use std::fs::File; use std::io::prelude::*; use std::io::BufWriter; use std::path::Path; -use std::env; use std::collections::BT...
4
175
59
d3e0d793b46d549cd6317df97d6df5af6005c8c5
Jonathan Behrens
2019-04-15T01:05:38
Add Radiance HDR file format (#45) * Add Radiance HDR file format See: http://fileformats.archiveteam.org/wiki/Radiance_HDR
diff --git a/src/mime_types.rs b/src/mime_types.rs index 4e27c3b..95dcf10 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -408,6 +408,7 @@ pub static MIME_TYPES: &'static [(&'static str, &'static str)] = &[ ("hdd", "application/x-virtualbox-hdd"), ("hdf", "application/x-hdf"), ("hdml", "text/x-...
1
1
0
91e33df1a8309990bedcead147581dac60aa50ac
Konrad Borowski
2019-01-17T14:07:38
Update phf This is necessary to avoid build failures with -Zminimal-versions
diff --git a/Cargo.toml b/Cargo.toml index 3052ea3..47170ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,9 +14,9 @@ bench = [] [dependencies] mime = "0.3" -phf = { version = "0.7", features = ["unicase"] } +phf = { version = "0.7.22", features = ["unicase"] } unicase = "1.1" [build-dependencies] -phf_codegen...
1
2
2
604cdb1407adee20fce4626da189406986a7ebc2
Laurentiu Nicola
2018-10-01T17:59:14
Add guess_mime_type_str
diff --git a/src/lib.rs b/src/lib.rs index 9975141..7276326 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -53,6 +53,11 @@ mod mime_types_src; /// that `path` points to match the MIME type associated with the path's extension. /// /// Take care when processing files with assumptions based on the return value of this fu...
1
27
1
e0394ddd093be45cfd0f99e3f10d3d2056dfaac5
Austin Bonander
2018-07-14T23:43:19
Bump to -alpha.6
diff --git a/Cargo.toml b/Cargo.toml index d2542fa..3052ea3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "2.0.0-alpha.5" +version = "2.0.0-alpha.6" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for dete...
1
1
1
0ab9b9d4a02e9c14c9910daaa74be3534b701213
Austin Bonander
2018-06-27T01:46:03
bump to 2.0.0-alpha.5
diff --git a/Cargo.toml b/Cargo.toml index 820c591..d2542fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "2.0.0-alpha.4" +version = "2.0.0-alpha.5" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for dete...
1
1
1
4b0d95c8ef36b7be30ec3676d2bb343055eb6ebb
Alexandre Bury
2018-06-26T22:40:20
Add `.py` as `text/plain` Python files (`*.py`) are plain text files.
diff --git a/src/mime_types.rs b/src/mime_types.rs index ec8afd3..c5c8972 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -392,6 +392,7 @@ pub static MIME_TYPES: &'static [(&'static str, &'static str)] = &[ ("pst", "application/vnd.ms-outlook"), ("pub", "application/x-mspublisher"), ("pwz", "ap...
1
1
0
2d190bbe1eefeb956c4a9f989e970ded00dd6f0c
Alexandre Bury
2018-06-26T22:37:58
Add `.hh` as `text/plain` `.hh` is sometimes used as an extension for C++ header files. Just like `.cc` or `.cpp`, it is `text/plain`.
diff --git a/src/mime_types.rs b/src/mime_types.rs index ec8afd3..1f79df4 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -163,6 +163,7 @@ pub static MIME_TYPES: &'static [(&'static str, &'static str)] = &[ ("h", "text/plain"), ("hdf", "application/x-hdf"), ("hdml", "text/x-hdml"), + ("hh", ...
1
1
0
4eb21a7cbb164cd4a0045ac81b953ab014ea4bfe
Austin Bonander
2018-02-24T18:33:48
Bump to 2.0.0-alpha.4
diff --git a/Cargo.toml b/Cargo.toml index 1022024..820c591 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "2.0.0-alpha.3" +version = "2.0.0-alpha.4" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for dete...
1
1
1
1e1ce89ce37373617ac9ff8a6fd6a680bbe7a454
Aleksey Kladov
2018-02-24T17:53:46
Make build-script more Cargo-friendly Previously, the build script would write generated code into the `src` directory, which is not officially supported: when one depends on mime_guess, the src dir is somewhere in `.cargo/registry`, and is supposed to be immutable. The correct way is to gen stuff into `OUT_DIR`, and...
diff --git a/Cargo.toml b/Cargo.toml index 20ac710..1022024 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,8 +9,6 @@ keywords = ["mime", "filesystem", "extension"] repository = "https://github.com/abonander/mime_guess" documentation = "https://docs.rs/mime_guess/" -build = "src/gen_mime_types.rs" - [features] ben...
3
23
24
d6efd2e3e355f1cb8c569a2299999576ed4f943b
asraelite
2017-12-31T15:05:26
Add .jsm and .mjs support
diff --git a/src/mime_types.rs b/src/mime_types.rs index 5d459df..ec8afd3 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -222,6 +222,7 @@ pub static MIME_TYPES: &'static [(&'static str, &'static str)] = &[ ("jpeg", "image/jpeg"), ("jpg", "image/jpeg"), ("js", "application/javascript"), + ("...
1
2
0
d322858314397bbd9808ac49a2cb64c3901a6282
Austin Bonander
2017-11-26T19:00:21
Bump alpha version
diff --git a/Cargo.toml b/Cargo.toml index 1b4b352..20ac710 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "2.0.0-alpha.2" +version = "2.0.0-alpha.3" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for dete...
1
1
1
a0e193ecc22e217b140b83096e01c19f72b90baa
quininer
2017-11-26T13:01:03
Add application/wasm see http://webassembly.org/docs/web/
diff --git a/src/mime_types.rs b/src/mime_types.rs index 5193d8c..5d459df 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -536,6 +536,7 @@ pub static MIME_TYPES: &'static [(&'static str, &'static str)] = &[ ("vsw", "application/vnd.visio"), ("vsx", "application/vnd.visio"), ("vtx", "application...
1
1
0
7857c5d0b22383ebd713893f86767aca94cd8f55
Austin Bonander
2017-08-04T23:02:06
Bump version to 2.0.0-alpha.2
diff --git a/Cargo.toml b/Cargo.toml index 170d84c..1b4b352 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "2.0.0-alpha.1" +version = "2.0.0-alpha.2" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for dete...
1
1
1
3a6229dd5995bb07f63076d384a4f3e53a7539c6
Matthew Wynn
2017-08-04T03:41:14
Add new mimetypes from MimeTypeMap
diff --git a/src/mime_types.rs b/src/mime_types.rs index 6ab44ad..5193d8c 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -5,7 +5,7 @@ /// /// Sorted by file extension to facilitate binary search. /// -/// Sourced from: +/// Sourced from: /// https://github.com/samuelneff/MimeTypeMap/blob/master/src/Mim...
1
26
4
38dcd146516aa9b240c03325d3332ac5bab11a2c
Austin Bonander
2017-06-10T01:56:51
lib.rs: fix headers in docs
diff --git a/src/lib.rs b/src/lib.rs index 33a5ad3..37b7937 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -39,7 +39,7 @@ mod mime_types_src; /// If `path` has no extension, or its extension has no known MIME type mapping, /// then the MIME type is assumed to be `application/octet-stream`. /// -/// ##Note +/// ## Note ...
1
6
6
6e38faade90736222044f0289f4ce6e89801053f
quininer kel
2017-06-09T14:59:04
Upgrade mime to 0.3
diff --git a/Cargo.toml b/Cargo.toml index 7a2204e..8554314 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ build = "src/gen_mime_types.rs" bench = [] [dependencies] -mime = ">=0.1, <0.3" +mime = "0.3" phf = { version = "0.7", features = ["unicase"] } unicase = "1.1" diff --git a/src/lib.rs b/src/lib...
2
2
2
eb1ea5170fa5f2c8ca712552ebbd27f8bcd02a94
Austin Bonander
2016-11-09T18:12:44
Bump version
diff --git a/Cargo.toml b/Cargo.toml index cc1f759..7a2204e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "1.8.0" +version = "1.8.1" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
1
1
43be8cb874baaa4fe220c2ae34054a2787b6cf04
Denis Kolodin
2016-10-27T09:24:34
Republish Mime trait
diff --git a/src/lib.rs b/src/lib.rs index c5350bd..33a5ad3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ extern crate mime; extern crate phf; extern crate unicase; -use mime::Mime; +pub use mime::Mime; use unicase::UniCase; use std::ffi::OsStr;
1
1
1
fc9be37297252f995660b1ca4b6346fd96c49954
Austin Bonander
2016-06-14T23:55:13
Add reverse mappings example
diff --git a/examples/rev_map.rs b/examples/rev_map.rs new file mode 100644 index 0000000..d90db95 --- /dev/null +++ b/examples/rev_map.rs @@ -0,0 +1,10 @@ +extern crate mime_guess; + +fn main() { + print_exts("video/*"); + print_exts("video/x-matroska"); +} + +fn print_exts(mime_type: &str) { + println!("Exts...
1
10
0
fc15c15245885490f003aa7d66a4dd1af4b1eeff
Austin Bonander
2016-06-14T23:54:41
Fix bug with reverse mappings
diff --git a/src/gen_mime_types.rs b/src/gen_mime_types.rs index f3f89ca..2e18221 100644 --- a/src/gen_mime_types.rs +++ b/src/gen_mime_types.rs @@ -95,6 +95,6 @@ fn build_rev_map<W: Write>(out: &mut W) { fn split_mime(mime: &str) -> (&str, &str) { let split_idx = mime.find('/').unwrap(); - mime.split_at(spl...
2
2
2
c43ba6ee9c298561a692a83ebfc3ecfdd80c2ff0
Austin Bonander
2016-06-14T23:28:39
Version bump
diff --git a/Cargo.toml b/Cargo.toml index d1ed978..d35bada 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "1.7.0" +version = "1.8.0" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
1
1
baed3dc5b5e0709139c97d1662fba1a4033814b6
Austin Bonander
2016-06-12T13:25:16
Documentation tweaks
diff --git a/src/lib.rs b/src/lib.rs index 0660954..df83445 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -95,24 +95,36 @@ pub fn get_mime_type_str(search_ext: &str) -> Option<&'static str> { map_lookup(&MIME_TYPES, search_ext).cloned() } -/// Get a list of known extensions for a given `Mime` type. Ignores parame...
1
24
12
b372badcf2cc39d2ddc45d191b83e100756189c3
Austin Bonander
2016-06-12T13:10:46
Reverse mappings with wildcards
diff --git a/src/gen_mime_types.rs b/src/gen_mime_types.rs index 6346165..18d2b09 100644 --- a/src/gen_mime_types.rs +++ b/src/gen_mime_types.rs @@ -2,6 +2,7 @@ extern crate phf_codegen; extern crate unicase; use phf_codegen::Map as PhfMap; +use phf_codegen::OrderedMap as PhfOrderedMap; use unicase::UniCase; @...
2
95
21
659a9d9371ccc8193c699242c96ab80cd7fe2b43
Austin Bonander
2016-06-14T23:30:31
Restore mappings removed by force-push
diff --git a/src/mime_types.rs b/src/mime_types.rs index 59f3c62..6ab44ad 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -258,6 +258,8 @@ pub static MIME_TYPES: &'static [(&'static str, &'static str)] = &[ ("midi", "audio/mid"), ("mix", "application/octet-stream"), ("mk", "text/plain"), + (...
1
2
0
40beb1f4dd25007e1d11efb5dca18139739ddad1
Austin Bonander
2016-06-14T23:27:25
Remove unused imports
diff --git a/src/lib.rs b/src/lib.rs index 1b5053e..d2fbea5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ extern crate mime; extern crate phf; extern crate unicase; -use mime::{Mime, TopLevel, SubLevel}; +use mime::Mime; use unicase::UniCase; use std::ffi::OsStr;
1
1
1
5fee244657055944819086c8e5aac4ddcaf8462b
Austin Bonander
2016-06-14T23:26:40
Just parse `application/octet-stream` so mime >=0.2.1 can use new SubLevel::OctetStream
diff --git a/src/lib.rs b/src/lib.rs index e5b3010..1b5053e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -115,9 +115,7 @@ pub fn get_extensions_str(mut mime_str: &str) -> Option<&'static [&'static str]> /// Get the MIME type for `application/octet-stream` (generic binary stream) pub fn octet_stream() -> Mime { - ...
1
1
3
4c63650b6d0567eba322e09b908549ce825c3ff9
Austin Bonander
2016-06-12T09:30:09
Activate new docs deployment
diff --git a/Cargo.toml b/Cargo.toml index ff4e325..d1ed978 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,7 @@ license = "MIT" description = "A simple crate for detection of a file's MIME type by its extension." keywords = ["mime", "filesystem", "extension"] repository = "https://github.com/cybergeek94/mime_gu...
1
1
0
640aa483419ab6ce764b6f0de44eec1e6eeadaa2
Austin Bonander
2016-06-12T09:19:21
Fix typo
diff --git a/src/lib.rs b/src/lib.rs index 5b8ad53..e5b3010 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -96,7 +96,7 @@ pub fn get_mime_type_str(search_ext: &str) -> Option<&'static str> { /// Returns `None` if the mime is unknown. pub fn get_extensions(mime: &Mime) -> Option<&'static [&'static str]> { let no_pa...
1
1
1
8478493ac76baf3e6b78185a6f8775b0790bd8e8
Austin Bonander
2016-06-12T09:17:35
Bump version
diff --git a/Cargo.toml b/Cargo.toml index 2635590..ff4e325 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "1.6.1" +version = "1.7.0" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
1
1
5c592dbd6355cb082cce5078d86c224dbd85f428
Austin Bonander
2016-06-12T09:17:13
Add reverse mappings
diff --git a/src/gen_mime_types.rs b/src/gen_mime_types.rs index 34f36f0..6346165 100644 --- a/src/gen_mime_types.rs +++ b/src/gen_mime_types.rs @@ -1,33 +1,65 @@ extern crate phf_codegen; extern crate unicase; +use phf_codegen::Map as PhfMap; + use unicase::UniCase; use std::fs::File; use std::io::prelude::*;...
2
90
19
377806979835d4f692c4408ed43e8fcffeb38264
Austin Bonander
2016-04-02T00:57:00
Bump version
diff --git a/Cargo.toml b/Cargo.toml index fc57497..2635590 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "1.6.0" +version = "1.6.1" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
1
1
bd11e2a3bbd71838bba6a17af7cd0feeb548ba94
Kevin Butler
2016-03-29T10:13:01
Use Unicase to remove allocation when uppercase
diff --git a/Cargo.toml b/Cargo.toml index 2b1c2a6..fc57497 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,9 @@ bench = [] [dependencies] mime = ">=0.1, <0.3" -phf = "0.7" +phf = { version = "0.7", features = ["unicase"] } +unicase = "1.1" [build-dependencies] phf_codegen = "0.7" +unicase = "1.1" diff --...
3
34
26
a9092eea23e1f3ed114137037378a54183aff780
Austin Bonander
2016-03-17T06:12:22
Bump minor version
diff --git a/Cargo.toml b/Cargo.toml index 4aebab5..2b1c2a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "1.5.1" +version = "1.6.0" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
1
1
465930f1a0fdb5ca7464acef72e08b0ae86c9b62
Anthony Ramine
2016-03-15T06:12:06
Allow mime 0.2
diff --git a/Cargo.toml b/Cargo.toml index 13d6ba6..4aebab5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "1.5.0" +version = "1.5.1" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
2
2
d78de4a02c81a6a49325a4b2c28890d576f2ff50
Austin Bonander
2016-03-04T19:51:04
Bump version to 1.5.0
diff --git a/Cargo.toml b/Cargo.toml index 48e5649..13d6ba6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "1.4.1" +version = "1.5.0" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
1
1
30d11dff679d2e2f67897546d3e5bd196afcc284
Austin Bonander
2016-02-01T11:25:21
Ensure that extensions are sorted (in source file) and lowercase in generated map
diff --git a/src/gen_mime_types.rs b/src/gen_mime_types.rs index 42270d1..409833c 100644 --- a/src/gen_mime_types.rs +++ b/src/gen_mime_types.rs @@ -8,14 +8,18 @@ const GENERATED_FILE: &'static str = "src/mime_types_generated.rs"; mod mime_types; -fn main() { - let mut outfile = BufWriter::new(File::create(GENE...
2
33
18
b67af295faab616a2183c8c1dab057f28d915bd2
Austin Bonander
2016-03-04T19:48:14
Bump version to 1.4.1
diff --git a/Cargo.toml b/Cargo.toml index 37a1612..cca21d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "1.4.0" +version = "1.4.1" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
1
1
ff2f665cbb897efdd1041baf075c8e8c6ec5e3f9
Elisabeth Henry
2016-03-04T17:40:22
Add Markdown (md) support There is a proposal to use "text/markdown" but it is still a draft (https://datatracker.ietf.org/doc/draft-ietf-appsawg-text-markdown/) in RFC editor queue so it seems wise to use "text/x-markdown" as long as it is not official (see http://stackoverflow.com/a/25812177 for a discussion on Mark...
diff --git a/src/mime_types.rs b/src/mime_types.rs index 3a81b02..59f3c62 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -245,6 +245,7 @@ pub static MIME_TYPES: &'static [(&'static str, &'static str)] = &[ ("manifest", "application/x-ms-manifest"), ("map", "text/plain"), ("master", "applicatio...
1
1
0
8297ff9d79fa2e2a2ae0d02c338649ac283473de
Austin Bonander
2016-01-16T01:03:15
Bump crate version
diff --git a/Cargo.toml b/Cargo.toml index 1be09cf..37a1612 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "1.3.0" +version = "1.4.0" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
1
1
1afccae369768003323ce49052204f9a6af22f05
Denis Kolodin
2016-01-03T13:03:26
Add optionally mime guessing
diff --git a/src/lib.rs b/src/lib.rs index 5287457..a23fedc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,9 +26,24 @@ mod mime_types; /// /// Take care when processing files with assumptions based on the return value of this function. pub fn guess_mime_type<P: AsRef<Path>>(path: P) -> Mime { + guess_mime_type_o...
1
36
2
e60804978298bde96b758a0be280743624149175
Austin Bonander
2015-12-14T01:10:32
Fix typos and performance
diff --git a/src/lib.rs b/src/lib.rs index b93ed2a..5287457 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,8 +43,8 @@ pub fn get_mime_type(search_ext: &str) -> Mime { /// Get the MIME type string associated with a file extension. Case-insensitive. /// -/// If it is not already lowercase, -/// `search_ext` will be ...
1
7
7
dd48603a25b68c546de24cff26584031f8094fd7
Austin Bonander
2015-12-14T00:10:07
Bump minor number
diff --git a/Cargo.toml b/Cargo.toml index 444057a..1be09cf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "1.2.0" +version = "1.3.0" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
1
1
e15fe6d5725d4006b9c8727dd010628f13c492c3
Austin Bonander
2015-12-14T00:09:22
Improve tests, add benchmark
diff --git a/Cargo.toml b/Cargo.toml index 3e193b1..444057a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,5 +8,8 @@ description = "A simple crate for detection of a file's MIME type by its extensi keywords = ["mime", "filesystem", "extension"] repository = "https://github.com/cybergeek94/mime_guess" +[features] +b...
3
71
12
6629fe5490ae864c83794553ec497b505e421b29
Austin Bonander
2015-12-13T09:01:19
Update MIME map with upstream changes; fix indent
diff --git a/src/mime_types.rs b/src/mime_types.rs index 53f585f..f75d5b8 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -5,573 +5,595 @@ /// /// Sorted by file extension to facilitate binary search. /// -/// Started from: +/// Sourced from: /// https://github.com/samuelneff/MimeTypeMap/blob/master/s...
1
589
567
d2909890c7668dca5dc5a2105be3c1a81465c462
emosenkis
2015-12-03T21:01:30
Add SVG support.
diff --git a/src/mime_types.rs b/src/mime_types.rs index b71e737..53f585f 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -430,6 +430,7 @@ pub static MIME_TYPES: &'static [(&'static str, &'static str)] = &[ ("sv4crc", "application/x-sv4crc"), ("svc", "application/xml"), ("svg", "image/svg+xml"), + ("svg...
1
1
0
147b0d782e2851b6e13a0211bb506c61e623a582
Austin Bonander
2015-12-07T21:06:49
Use specific version for `mime` crate
diff --git a/Cargo.toml b/Cargo.toml index 4b1a46e..3e193b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,4 +9,4 @@ keywords = ["mime", "filesystem", "extension"] repository = "https://github.com/cybergeek94/mime_guess" [dependencies] -mime = "*" +mime = "0.1"
1
1
1
ebac8fc5aa0d62d25e51fda59acd2455582009d3
Austin Bonander
2015-12-07T20:13:47
Bump verison number to 1.2
diff --git a/Cargo.toml b/Cargo.toml index f8ebd32..4b1a46e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "1.1.1" +version = "1.2.0" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
1
1
7d9ad66c1e0fac13e2559d112a23359c5259998f
Austin Bonander
2015-12-07T19:10:25
Update source URL and fix wording
diff --git a/src/mime_types.rs b/src/mime_types.rs index 13c0783..16fce32 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -5,7 +5,8 @@ /// /// Sorted by file extension to facilitate binary search. /// -/// Source: https://github.com/samuelneff/MimeTypeMap/blob/master/src/MimeTypeMap.cs +/// Started from: ...
1
2
1
7a954e62da948b7a1224f02cd24f314433af565e
Josh Matthews
2015-11-26T16:09:27
Use better MIME type for TTF. http://www.iana.org/assignments/media-types/application/font-sfnt
diff --git a/src/mime_types.rs b/src/mime_types.rs index fef4261..0732adc 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -451,7 +451,7 @@ pub static MIME_TYPES: &'static [(&'static str, &'static str)] = &[ ("trx", "application/xml"), ("ts", "video/vnd.dlna.mpeg-tts"), ("tsv", "text/tab-separated-values...
1
1
1
6d286eaa806e36f20cd7f3d1c70adf4470d38076
Denis Kolodin
2015-10-05T04:27:11
Generic way to guess mime
diff --git a/src/lib.rs b/src/lib.rs index dd9e7cf..9bb86e5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,8 +24,8 @@ mod mime_types; /// that `path` points to match the MIME type associated with the path's extension. /// /// Take care when processing files with assumptions based on the return value of this functio...
1
7
3
630b67c0b70ecb04129035b4ce705c1ac1b7927d
Conrad Kleinespel
2015-09-13T15:18:46
adds yaml/yml/toml/rs support
diff --git a/src/mime_types.rs b/src/mime_types.rs index 3f3a769..fef4261 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -1,5 +1,5 @@ // Probably not exhaustive; keep updated. -// Needs to be sorted by extension, and extensions need to be lowercase +// Needs to be sorted by extension, and extensions need t...
1
5
1
ab32783ec0a336a703133cd2614b186342d86c91
Jonathan Nilsson
2015-09-05T18:45:52
Added svg
diff --git a/src/mime_types.rs b/src/mime_types.rs index 3f3a769..88554f9 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -427,6 +427,7 @@ pub static MIME_TYPES: &'static [(&'static str, &'static str)] = &[ ("sv4cpio", "application/x-sv4cpio"), ("sv4crc", "application/x-sv4crc"), ("svc", "application/xm...
1
1
0
2985a94a980ebbbdf3393d2c50960a4c6933e729
Robert Norris
2015-07-20T08:28:39
Change .js to application/javascript per RFC4329
diff --git a/src/mime_types.rs b/src/mime_types.rs index 3f3a769..a2038cc 100644 --- a/src/mime_types.rs +++ b/src/mime_types.rs @@ -208,7 +208,7 @@ pub static MIME_TYPES: &'static [(&'static str, &'static str)] = &[ ("jpe", "image/jpeg"), ("jpeg", "image/jpeg"), ("jpg", "image/jpeg"), - ("js", "application/x-jav...
1
1
1
4b601d9722a55fd2175645c8f0b82dd1855b071d
Austin Bonander
2015-07-05T08:27:28
Bump version number (again)
diff --git a/Cargo.toml b/Cargo.toml index c4cbfb6..f8ebd32 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "1.1.0" +version = "1.1.1" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
1
1
7174b68d929da4b34e01db29b58a4391f007b8f3
Austin Bonander
2015-07-05T08:26:30
Add repo URL
diff --git a/Cargo.toml b/Cargo.toml index 8b9142e..c4cbfb6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file's MIME type by its extension." keywords = ["mime", "filesystem", "extens...
1
1
1
bb8ac303061184e62efd7597fa352eee68da72b3
Austin Bonander
2015-07-05T08:25:43
Bump version #
diff --git a/Cargo.toml b/Cargo.toml index ea2a156..8b9142e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mime_guess" -version = "1.0.0" +version = "1.1.0" authors = ["Austin Bonander <austin.bonander@gmail.com>"] license = "MIT" description = "A simple crate for detection of a file'...
1
1
1
e4020e1819d2beb435503105a193c16ac604d5d2
Austin Bonander
2015-07-05T08:25:24
Add keys for Crates.io
diff --git a/Cargo.toml b/Cargo.toml index 7f6ef00..ea2a156 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,10 @@ name = "mime_guess" version = "1.0.0" authors = ["Austin Bonander <austin.bonander@gmail.com>"] +license = "MIT" +description = "A simple crate for detection of a file's MIME type by its extension." ...
1
4
0
8c0f0bd10042342d8bf263e217bf6ff05e7e7ede
Lukas Kalbertodt
2015-07-05T07:48:59
Update for new Rust (works with stable, beta and nightly)
diff --git a/src/lib.rs b/src/lib.rs index 03ed080..dd9e7cf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,6 @@ //! Guessing of MIME types by file extension. //! //! Uses a static list of file-extension : MIME type mappings. -#![feature(os, path)] extern crate mime; @@ -21,9 +20,9 @@ mod mime_types; /// t...
1
5
6
dd847b091bb84f648b321c367c08eeac666dc37b
Austin Bonander
2015-02-27T23:24:04
Remove spurious file
diff --git a/lib.rs b/lib.rs deleted file mode 100644 index e69de29..0000000
1
0
0
b0961625a9abc5bf71c60e7e1907975f3c0ebd7e
Austin Bonander
2015-02-27T23:20:11
Docstring tweaks
diff --git a/src/lib.rs b/src/lib.rs index d3eec7f..03ed080 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,6 +2,7 @@ //! //! Uses a static list of file-extension : MIME type mappings. #![feature(os, path)] + extern crate mime; use mime::Mime; @@ -20,9 +21,10 @@ mod mime_types; /// then the MIME type is assumed ...
2
11
4
45489da6f3bcda203adacf89e7c1069bc16b6e14
Tony Arcieri
2026-04-11T01:53:42
elliptic-curve: add `MulByGeneratorVartime` trait (#2381) Closes #2375 We now have variable-time precomputed basepoint tables that use wNAF when the `basepoint-table` and `alloc` features are enabled, which can be opportunistically used when these features are enabled to accelerate this operation. We use `Group::mul...
diff --git a/elliptic-curve/src/ops.rs b/elliptic-curve/src/ops.rs index c8c344b..e5c1a2c 100644 --- a/elliptic-curve/src/ops.rs +++ b/elliptic-curve/src/ops.rs @@ -6,6 +6,7 @@ pub use core::ops::{Add, AddAssign, Mul, MulAssign, Neg, Shr, ShrAssign, Sub, Su use crate::CurveGroup; use core::iter; use ff::Field; +use ...
1
30
0
b48dd1eb7647bb96ba213cc339bc985577e66c7e
Tony Arcieri
2026-04-10T15:04:00
elliptic-curve: `MulVartime` fixups (#2380) - Adds `MulVartime` to `AffinePoint` and `ProjectivePoint` bounds - Adds boilerplate `MulVartime` impls to `scalar_mul_impls!` - Uses `scalar_mul_impls!` for `MockCurve`
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index 8622d4b..0678402 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -29,6 +29,8 @@ pub trait CurveArithmetic: Curve { + Eq + From<NonIdentity<Self::AffinePoint>> + Gener...
3
135
58