Version 1.0.0
This commit is contained in:
parent
312627e298
commit
a93cf7abd6
|
@ -116,7 +116,7 @@ checksum = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "opml"
|
name = "opml"
|
||||||
version = "0.3.0"
|
version = "1.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"regex",
|
"regex",
|
||||||
"serde",
|
"serde",
|
||||||
|
@ -126,7 +126,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "opml_cli"
|
name = "opml_cli"
|
||||||
version = "0.3.0"
|
version = "1.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"assert_cmd",
|
"assert_cmd",
|
||||||
"clap",
|
"clap",
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
name = "opml"
|
name = "opml"
|
||||||
description = "An OPML parser for Rust."
|
description = "An OPML parser for Rust."
|
||||||
authors = ["Holllo <helllo@holllo.cc>"]
|
authors = ["Holllo <helllo@holllo.cc>"]
|
||||||
version = "0.3.0"
|
version = "1.0.0"
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
repository = "https://github.com/Holllo/opml"
|
repository = "https://github.com/Holllo/opml"
|
||||||
readme = "../README.md"
|
readme = "../README.md"
|
||||||
|
|
|
@ -66,7 +66,7 @@ use thiserror::Error;
|
||||||
|
|
||||||
#[derive(Debug, Error)]
|
#[derive(Debug, Error)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
#[error("OPML body has no <outlines> elements")]
|
#[error("OPML body has no <outline> elements")]
|
||||||
BodyHasNoOutlines,
|
BodyHasNoOutlines,
|
||||||
#[error("Unsupported OPML version: {0:?}")]
|
#[error("Unsupported OPML version: {0:?}")]
|
||||||
UnsupportedVersion(String),
|
UnsupportedVersion(String),
|
||||||
|
|
|
@ -26,6 +26,7 @@ fn test_opml_construction_1() -> Result<(), Box<dyn Error>> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[allow(clippy::field_reassign_with_default)]
|
||||||
fn test_opml_construction_2() -> Result<(), Box<dyn Error>> {
|
fn test_opml_construction_2() -> Result<(), Box<dyn Error>> {
|
||||||
let mut opml = OPML::default();
|
let mut opml = OPML::default();
|
||||||
opml.head = Some(Head {
|
opml.head = Some(Head {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "opml_cli"
|
name = "opml_cli"
|
||||||
description = "An OPML parser for the command-line."
|
description = "An OPML parser for the command-line."
|
||||||
version = "0.3.0"
|
version = "1.0.0"
|
||||||
authors = ["Holllo <helllo@holllo.cc>"]
|
authors = ["Holllo <helllo@holllo.cc>"]
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
repository = "https://github.com/Holllo/opml"
|
repository = "https://github.com/Holllo/opml"
|
||||||
|
@ -17,7 +17,7 @@ path = "source/main.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = "2.33"
|
clap = "2.33"
|
||||||
opml = { path = "../opml_api", version = "0.3" }
|
opml = { path = "../opml_api", version = "1.0" }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
|
|
||||||
[dependencies.serde]
|
[dependencies.serde]
|
||||||
|
|
Loading…
Reference in New Issue