crawlberg 0.0.1 → 1.0.0.pre.rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +160 -1
- data/Steepfile +14 -0
- data/ext/crawlberg_rb/native/Cargo.lock +3419 -0
- data/ext/crawlberg_rb/native/Cargo.toml +26 -0
- data/ext/crawlberg_rb/native/extconf.rb +14 -0
- data/ext/crawlberg_rb/src/lib.rs +7690 -0
- data/lib/crawlberg/native.rb +494 -0
- data/lib/crawlberg/version.rb +10 -0
- data/lib/crawlberg.rb +14 -2
- data/lib/crawlberg_rb.so +0 -0
- data/sig/types.rbs +530 -0
- metadata +62 -13
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "crawlberg-rb"
|
|
3
|
+
version = "1.0.0-rc.2"
|
|
4
|
+
edition = "2024"
|
|
5
|
+
license = "MIT"
|
|
6
|
+
description = "High-performance web crawling engine"
|
|
7
|
+
readme = false
|
|
8
|
+
keywords = ["crawl", "scrape", "spider", "web"]
|
|
9
|
+
categories = []
|
|
10
|
+
|
|
11
|
+
[package.metadata.cargo-machete]
|
|
12
|
+
ignored = ["rb-sys"]
|
|
13
|
+
|
|
14
|
+
[lib]
|
|
15
|
+
name = "crawlberg_rb"
|
|
16
|
+
path = "../src/lib.rs"
|
|
17
|
+
crate-type = ["cdylib"]
|
|
18
|
+
|
|
19
|
+
[dependencies]
|
|
20
|
+
crawlberg = { version = "1.0.0-rc.2", features = ["interact", "browser-chromiumoxide"] }
|
|
21
|
+
futures = "0.3"
|
|
22
|
+
magnus = "0.8"
|
|
23
|
+
rb-sys = ">=0.9, <0.9.128"
|
|
24
|
+
serde = { version = "1", features = ["derive"] }
|
|
25
|
+
serde_json = "1"
|
|
26
|
+
tokio = { version = "1", features = ["rt-multi-thread"] }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "mkmf"
|
|
4
|
+
require "rb_sys/mkmf"
|
|
5
|
+
|
|
6
|
+
default_profile = ENV.fetch("CARGO_PROFILE", "release")
|
|
7
|
+
|
|
8
|
+
create_rust_makefile("crawlberg_rb") do |config|
|
|
9
|
+
config.profile = default_profile.to_sym
|
|
10
|
+
# extconf.rb and Cargo.toml are siblings under ext/crawlberg_rb/native/; rb_sys interprets
|
|
11
|
+
# ext_dir relative to extconf.rb, so "." finds the sibling Cargo.toml. "native" would
|
|
12
|
+
# resolve to native/native/Cargo.toml and break `gem install` on end-user machines.
|
|
13
|
+
config.ext_dir = "."
|
|
14
|
+
end
|