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