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 8 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.

25 changes: 12 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@
name = "dazeus-plugin-karma"
version = "0.1.0"
authors = ["Ruben Nijveld <[email protected]>"]
dsprenkels marked this conversation as resolved.
Show resolved Hide resolved
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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The overhead is negligible, but why?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the overhead is negligible and I hate overflow bugs. :P

Feel free to veto me on this.

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