Skip to content

Commit 23c9700

Browse files
committed
Merge pull request #15 from kevin-rs/backend
feat(core): revamp && add all user agents & all ddg backends
2 parents 795c8df + 0097eab commit 23c9700

File tree

12 files changed

+10444
-426
lines changed

12 files changed

+10444
-426
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 22 deletions
This file was deleted.

.bumpversion.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[bumpversion]
2+
current_version = 0.1.2
3+
4+
[bumpversion:file:Cargo.toml]
5+
search = version = "{current_version}"
6+
replace = version = "{new_version}"

.github/workflows/rust.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,20 @@ name: Rust
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
1615

1716
steps:
18-
- uses: actions/checkout@v3
19-
- name: Build
20-
run: cargo build --verbose
21-
- name: Run tests
22-
run: cargo test --verbose
17+
- uses: actions/checkout@v3
18+
- name: Build
19+
run: cargo build --verbose
20+
- name: Run tests
21+
run: cargo test --all-features

Cargo.toml

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,55 @@
22
name = "duckduckgo"
33
version = "0.1.2"
44
authors = ["Mahmoud Harmouch <[email protected]>"]
5-
edition = "2021"
5+
edition = "2024"
66
description = "🦆 A CLI and library for colorful DuckDuckGo searches."
77
license = "MIT"
8-
homepage = "https://github.com/wiseaidev/duckduckgo"
8+
homepage = "https://github.com/kevin-rs/duckduckgo"
99
documentation = "https://docs.rs/duckduckgo"
10-
repository = "https://github.com/wiseaidev/duckduckgo"
11-
categories = ["command-line-interface", "command-line-utilities"]
10+
repository = "https://github.com/kevin-rs/duckduckgo"
1211
keywords = ["cli", "duckduckgo", "search", "dorks", "api"]
12+
categories = [
13+
"command-line-utilities",
14+
"network-programming",
15+
"web-programming::http-client",
16+
"text-processing",
17+
"accessibility"
18+
]
19+
20+
[[bin]]
21+
name = "ddg"
22+
path = "src/bin/main.rs"
1323

1424
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1525

1626
[dependencies]
17-
clap = { version = "4.4.11", features = ["derive"] }
18-
once_cell = "1.19.0"
19-
reqwest = { version="0.11.23", features=["cookies",] }
20-
serde = { version = "1.0.193", features = ["derive"] }
21-
serde_json = "1.0.108"
22-
tokio = { version = "1.35.1", features = ["full"] }
27+
clap = { version = "4.5.40", features = ["derive"], optional = true }
28+
tokio = { version = "1.45.1", features = ["full"], optional = true }
29+
reqwest = { version="0.11.27", features=["cookies", "json"] }
30+
serde = { version = "1.0.219", features = ["derive"] }
31+
phf = { version = "0.12.1", features = ["macros"] }
32+
serde_json = "1.0.140"
2333
urlencoding = "2.1.3"
34+
anyhow = "1.0.98"
35+
regex = "1.11.1"
36+
scraper = "0.23.1"
37+
chrono = "0.4.41"
38+
39+
[dev-dependencies]
40+
tokio = { version = "1.45.1", features = ["full"] }
41+
42+
[features]
43+
default = []
44+
cli = ["clap", "tokio"]
2445

2546
[profile.release]
26-
codegen-units = 1
2747
opt-level = "z"
48+
debug = false
2849
lto = "thin"
50+
codegen-units = 3
51+
panic = "abort"
2952
strip = "symbols"
53+
incremental = false
54+
55+
[badges]
56+
maintenance = { status = "actively-developed" }

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Mahmoud
3+
Copyright (c) 2025 Kevin RS Core Maintainers
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)