Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite and implement }karmalink & }karmaunlink #9

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
398 changes: 340 additions & 58 deletions Cargo.lock

Large diffs are not rendered by default.

27 changes: 13 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
[package]
name = "dazeus-plugin-karma"
version = "0.1.0"
authors = ["Ruben Nijveld <[email protected]>"]
authors = ["Ruben Nijveld <[email protected]>", "Daan Sprenkels <[email protected]>"]
edition = "2018"

[dependencies.dazeus]
version = "0.4"

[dependencies.docopt]
version = "0.6"
[dependencies]
chrono = { version = "0.4.19", features = ["serde"] }
dazeus = "0.4"
docopt = "1.1.0"
env_logger = "0.8.1"
log = "0.4.11"
nom = "6.0.0"
serde = { version = "1.0.117", features = ["derive"] }
serde_json = "1.0.59"
dsprenkels marked this conversation as resolved.
Show resolved Hide resolved

[dependencies.rustc-serialize]
version = "0.3"

[dependencies.log]
version = "0.3"

[dependencies.env_logger]
version = "0.3"

[dependencies.chrono]
version = "0.2"
[profile.release]
overflow-checks = true
24 changes: 0 additions & 24 deletions grammar.sh

This file was deleted.

6 changes: 4 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#[derive(Debug)]
pub struct KarmaError {
descr: String
descr: String,
}

impl KarmaError {
pub fn new(descr: &str) -> KarmaError {
KarmaError { descr: descr.to_string() }
KarmaError {
descr: descr.to_string(),
}
}
}

Expand Down
Loading