Commit Graph

21 Commits

Author SHA1 Message Date
William Batista d83f888da7
Library now panics! on invalid magnet url
Another helpful redditor warned me about the dangers of not validating
that the URL given is a magnet url. Unfortuanetly, I can't just change
everything to use Options and Errors, so I'm making the fix of having
the library just panic instead, since that would make it still
backwards compatible. This will be changed in version 2.0.0
2021-02-17 10:15:02 -05:00
William Batista f3bf0aeff2
v1.0.5 2021-02-17 08:37:17 -05:00
William Batista e452658bc8
Minor documentation improvements
I got some feedback from Redditors, and addd some information as to what
a magnet url is, and why a magnet-url parser is useful
2021-02-17 08:35:23 -05:00
William Batista 95f912f950
v1.0.4 2021-02-16 20:46:48 -05:00
William Batista b5c8b4b37a
Changed license-file to license in Cargo.toml
This is so that crates.io doesn't think that my license is non-standard
2021-02-16 20:12:29 -05:00
William Batista 028700b588
v1.0.3 2021-02-16 16:08:44 -05:00
William Batista fcb75352c1
Added tests, Regex bug fix
I added some tests so that I can actually make sure everything works in
the parser. Also made a quick bug fix in any regex that looks for http
links, since they're very likely to be URL encoded.
2021-02-16 16:06:11 -05:00
William Batista 4fe6e9b828
Incrementing minor version by 1 2021-02-16 15:26:25 -05:00
William Batista 67767230ab
Even more documentation bug fixes
Okay. Now everything should work. I realized that cargo doc doesn't test
that documentation code works, but that cargo test does.
2021-02-16 15:23:32 -05:00
William Batista d08713b412
More documentation bug fixes
You can't use dashes in variable names(?)
2021-02-16 15:18:56 -05:00
William Batista 03f4cf1741
Fixed documentation examples
I put one colon instead of two
2021-02-16 15:13:13 -05:00
William Batista 134fcc5b50
Added build status from Travis CI
There's been a lot of commits because of the mistakes I've made on this
repo. This should be the last one.
2021-02-16 15:10:06 -05:00
William Batista 10f4f5d002
Added Travis CI
Now I can actually make sure builds will compile before pushing them
jaja
2021-02-16 15:08:09 -05:00
William Batista 1a54eedf24
Bug fix in Regex
Removed an unnecessary backwards parantheses, renamed project again
2021-02-16 14:55:27 -05:00
William Batista 41164ac5ba
Renamed crate to magnet_url
I didn't realize you can't import crates with a dash in their name :(
2021-02-16 14:37:31 -05:00
William Batista e4e1d3283f
Renamed crate in documentation
I'm an idiot and forgot to rename the library in the documentation
2021-02-16 14:07:38 -05:00
William Batista f1cc2a5ca8
Slightly changed name of Cargo project
Just removed the -rs part, in order to fit the Rust naming standards
better
2021-02-16 13:57:19 -05:00
William Batista 38082c9cce
Minor bug fix
I removed the MAGNET_RE stuff, since it isn't used in the program.
2021-02-16 13:55:52 -05:00
William Batista bb72101215
Added LICENSE.md
Forgot to add it in the initial commit, whoops.
2021-02-16 13:46:25 -05:00
William Batista 0b632edb9a
Added Magnet Parsing Code
The ode basically uses a ton of regex checks to find specific parts of the magnet url, and then chops it up into the Magnet struct.
2021-02-16 13:45:20 -05:00
William Batista ab009683c2
Initial commit 2021-02-15 18:22:02 -05:00