Add crate csv

This commit is contained in:
RumovZ 2022-05-02 16:53:54 +02:00
parent faa21266db
commit ae940f1faa
14 changed files with 463 additions and 0 deletions

1
Cargo.lock generated
View file

@ -54,6 +54,7 @@ dependencies = [
"chrono",
"coarsetime",
"criterion",
"csv",
"env_logger",
"flate2",
"fluent",

View file

@ -66,6 +66,15 @@ alias(
],
)
alias(
name = "csv",
actual = "@raze__csv__1_1_6//:csv",
tags = [
"cargo-raze",
"manual",
],
)
alias(
name = "env_logger",
actual = "@raze__env_logger__0_9_0//:env_logger",

View file

@ -171,6 +171,16 @@ def raze_fetch_remote_crates():
build_file = Label("//cargo/remote:BUILD.block-buffer-0.10.2.bazel"),
)
maybe(
http_archive,
name = "raze__bstr__0_2_17",
url = "https://crates.io/api/v1/crates/bstr/0.2.17/download",
type = "tar.gz",
sha256 = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223",
strip_prefix = "bstr-0.2.17",
build_file = Label("//cargo/remote:BUILD.bstr-0.2.17.bazel"),
)
maybe(
http_archive,
name = "raze__bumpalo__3_9_1",
@ -361,6 +371,26 @@ def raze_fetch_remote_crates():
build_file = Label("//cargo/remote:BUILD.cssparser-macros-0.6.0.bazel"),
)
maybe(
http_archive,
name = "raze__csv__1_1_6",
url = "https://crates.io/api/v1/crates/csv/1.1.6/download",
type = "tar.gz",
sha256 = "22813a6dc45b335f9bade10bf7271dc477e81113e89eb251a0bc2a8a81c536e1",
strip_prefix = "csv-1.1.6",
build_file = Label("//cargo/remote:BUILD.csv-1.1.6.bazel"),
)
maybe(
http_archive,
name = "raze__csv_core__0_1_10",
url = "https://crates.io/api/v1/crates/csv-core/0.1.10/download",
type = "tar.gz",
sha256 = "2b2466559f260f48ad25fe6317b3c8dac77b5bdb5763ac7d9d6103530663bc90",
strip_prefix = "csv-core-0.1.10",
build_file = Label("//cargo/remote:BUILD.csv-core-0.1.10.bazel"),
)
maybe(
http_archive,
name = "raze__derive_more__0_99_17",
@ -1931,6 +1961,16 @@ def raze_fetch_remote_crates():
build_file = Label("//cargo/remote:BUILD.regex-1.5.5.bazel"),
)
maybe(
http_archive,
name = "raze__regex_automata__0_1_10",
url = "https://crates.io/api/v1/crates/regex-automata/0.1.10/download",
type = "tar.gz",
sha256 = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132",
strip_prefix = "regex-automata-0.1.10",
build_file = Label("//cargo/remote:BUILD.regex-automata-0.1.10.bazel"),
)
maybe(
http_archive,
name = "raze__regex_syntax__0_6_25",

View file

@ -161,6 +161,15 @@
"license_file": null,
"description": "Buffer type for block processing of data"
},
{
"name": "bstr",
"version": "0.2.17",
"authors": "Andrew Gallant <jamslam@gmail.com>",
"repository": "https://github.com/BurntSushi/bstr",
"license": "Apache-2.0 OR MIT",
"license_file": null,
"description": "A string type that is not required to be valid UTF-8."
},
{
"name": "bumpalo",
"version": "3.9.1",
@ -287,6 +296,24 @@
"license_file": null,
"description": "Common cryptographic traits"
},
{
"name": "csv",
"version": "1.1.6",
"authors": "Andrew Gallant <jamslam@gmail.com>",
"repository": "https://github.com/BurntSushi/rust-csv",
"license": "MIT OR Unlicense",
"license_file": null,
"description": "Fast CSV parsing with support for serde."
},
{
"name": "csv-core",
"version": "0.1.10",
"authors": "Andrew Gallant <jamslam@gmail.com>",
"repository": "https://github.com/BurntSushi/rust-csv",
"license": "MIT OR Unlicense",
"license_file": null,
"description": "Bare bones CSV parsing with no_std support."
},
{
"name": "digest",
"version": "0.10.3",
@ -1556,6 +1583,15 @@
"license_file": null,
"description": "An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs."
},
{
"name": "regex-automata",
"version": "0.1.10",
"authors": "Andrew Gallant <jamslam@gmail.com>",
"repository": "https://github.com/BurntSushi/regex-automata",
"license": "MIT OR Unlicense",
"license_file": null,
"description": "Automata construction and matching using regular expressions."
},
{
"name": "regex-syntax",
"version": "0.6.25",

82
cargo/remote/BUILD.bstr-0.2.17.bazel vendored Normal file
View file

@ -0,0 +1,82 @@
"""
@generated
cargo-raze crate build file.
DO NOT EDIT! Replaced on runs of cargo-raze
"""
# buildifier: disable=load
load("@bazel_skylib//lib:selects.bzl", "selects")
# buildifier: disable=load
load(
"@rules_rust//rust:defs.bzl",
"rust_binary",
"rust_library",
"rust_proc_macro",
"rust_test",
)
package(default_visibility = [
# Public for visibility by "@raze__crate__version//" targets.
#
# Prefer access through "//cargo", which limits external
# visibility to explicit Cargo.toml dependencies.
"//visibility:public",
])
licenses([
"notice", # MIT from expression "MIT OR Apache-2.0"
])
# Generated Targets
# Unsupported target "graphemes" with type "example" omitted
# Unsupported target "graphemes-std" with type "example" omitted
# Unsupported target "lines" with type "example" omitted
# Unsupported target "lines-std" with type "example" omitted
# Unsupported target "uppercase" with type "example" omitted
# Unsupported target "uppercase-std" with type "example" omitted
# Unsupported target "words" with type "example" omitted
# Unsupported target "words-std" with type "example" omitted
rust_library(
name = "bstr",
srcs = glob(["**/*.rs"]),
crate_features = [
"default",
"lazy_static",
"regex-automata",
"serde",
"serde1",
"serde1-nostd",
"std",
"unicode",
],
crate_root = "src/lib.rs",
data = [],
edition = "2018",
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-raze",
"crate-name=bstr",
"manual",
],
version = "0.2.17",
# buildifier: leave-alone
deps = [
"@raze__lazy_static__1_4_0//:lazy_static",
"@raze__memchr__2_4_1//:memchr",
"@raze__regex_automata__0_1_10//:regex_automata",
"@raze__serde__1_0_136//:serde",
],
)

135
cargo/remote/BUILD.csv-1.1.6.bazel vendored Normal file
View file

@ -0,0 +1,135 @@
"""
@generated
cargo-raze crate build file.
DO NOT EDIT! Replaced on runs of cargo-raze
"""
# buildifier: disable=load
load("@bazel_skylib//lib:selects.bzl", "selects")
# buildifier: disable=load
load(
"@rules_rust//rust:defs.bzl",
"rust_binary",
"rust_library",
"rust_proc_macro",
"rust_test",
)
package(default_visibility = [
# Public for visibility by "@raze__crate__version//" targets.
#
# Prefer access through "//cargo", which limits external
# visibility to explicit Cargo.toml dependencies.
"//visibility:public",
])
licenses([
"unencumbered", # Unlicense from expression "Unlicense OR MIT"
])
# Generated Targets
# Unsupported target "bench" with type "bench" omitted
# Unsupported target "cookbook-read-basic" with type "example" omitted
# Unsupported target "cookbook-read-colon" with type "example" omitted
# Unsupported target "cookbook-read-no-headers" with type "example" omitted
# Unsupported target "cookbook-read-serde" with type "example" omitted
# Unsupported target "cookbook-write-basic" with type "example" omitted
# Unsupported target "cookbook-write-serde" with type "example" omitted
# Unsupported target "tutorial-error-01" with type "example" omitted
# Unsupported target "tutorial-error-02" with type "example" omitted
# Unsupported target "tutorial-error-03" with type "example" omitted
# Unsupported target "tutorial-error-04" with type "example" omitted
# Unsupported target "tutorial-perf-alloc-01" with type "example" omitted
# Unsupported target "tutorial-perf-alloc-02" with type "example" omitted
# Unsupported target "tutorial-perf-alloc-03" with type "example" omitted
# Unsupported target "tutorial-perf-core-01" with type "example" omitted
# Unsupported target "tutorial-perf-serde-01" with type "example" omitted
# Unsupported target "tutorial-perf-serde-02" with type "example" omitted
# Unsupported target "tutorial-perf-serde-03" with type "example" omitted
# Unsupported target "tutorial-pipeline-pop-01" with type "example" omitted
# Unsupported target "tutorial-pipeline-search-01" with type "example" omitted
# Unsupported target "tutorial-pipeline-search-02" with type "example" omitted
# Unsupported target "tutorial-read-01" with type "example" omitted
# Unsupported target "tutorial-read-delimiter-01" with type "example" omitted
# Unsupported target "tutorial-read-headers-01" with type "example" omitted
# Unsupported target "tutorial-read-headers-02" with type "example" omitted
# Unsupported target "tutorial-read-serde-01" with type "example" omitted
# Unsupported target "tutorial-read-serde-02" with type "example" omitted
# Unsupported target "tutorial-read-serde-03" with type "example" omitted
# Unsupported target "tutorial-read-serde-04" with type "example" omitted
# Unsupported target "tutorial-read-serde-invalid-01" with type "example" omitted
# Unsupported target "tutorial-read-serde-invalid-02" with type "example" omitted
# Unsupported target "tutorial-setup-01" with type "example" omitted
# Unsupported target "tutorial-write-01" with type "example" omitted
# Unsupported target "tutorial-write-02" with type "example" omitted
# Unsupported target "tutorial-write-delimiter-01" with type "example" omitted
# Unsupported target "tutorial-write-serde-01" with type "example" omitted
# Unsupported target "tutorial-write-serde-02" with type "example" omitted
rust_library(
name = "csv",
srcs = glob(["**/*.rs"]),
crate_features = [
],
crate_root = "src/lib.rs",
data = [],
edition = "2018",
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-raze",
"crate-name=csv",
"manual",
],
version = "1.1.6",
# buildifier: leave-alone
deps = [
"@raze__bstr__0_2_17//:bstr",
"@raze__csv_core__0_1_10//:csv_core",
"@raze__itoa__0_4_8//:itoa",
"@raze__ryu__1_0_9//:ryu",
"@raze__serde__1_0_136//:serde",
],
)
# Unsupported target "tests" with type "test" omitted

View file

@ -0,0 +1,58 @@
"""
@generated
cargo-raze crate build file.
DO NOT EDIT! Replaced on runs of cargo-raze
"""
# buildifier: disable=load
load("@bazel_skylib//lib:selects.bzl", "selects")
# buildifier: disable=load
load(
"@rules_rust//rust:defs.bzl",
"rust_binary",
"rust_library",
"rust_proc_macro",
"rust_test",
)
package(default_visibility = [
# Public for visibility by "@raze__crate__version//" targets.
#
# Prefer access through "//cargo", which limits external
# visibility to explicit Cargo.toml dependencies.
"//visibility:public",
])
licenses([
"unencumbered", # Unlicense from expression "Unlicense OR MIT"
])
# Generated Targets
# Unsupported target "bench" with type "bench" omitted
rust_library(
name = "csv_core",
srcs = glob(["**/*.rs"]),
crate_features = [
"default",
],
crate_root = "src/lib.rs",
data = [],
edition = "2018",
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-raze",
"crate-name=csv-core",
"manual",
],
version = "0.1.10",
# buildifier: leave-alone
deps = [
"@raze__memchr__2_4_1//:memchr",
],
)

View file

@ -0,0 +1,56 @@
"""
@generated
cargo-raze crate build file.
DO NOT EDIT! Replaced on runs of cargo-raze
"""
# buildifier: disable=load
load("@bazel_skylib//lib:selects.bzl", "selects")
# buildifier: disable=load
load(
"@rules_rust//rust:defs.bzl",
"rust_binary",
"rust_library",
"rust_proc_macro",
"rust_test",
)
package(default_visibility = [
# Public for visibility by "@raze__crate__version//" targets.
#
# Prefer access through "//cargo", which limits external
# visibility to explicit Cargo.toml dependencies.
"//visibility:public",
])
licenses([
"unencumbered", # Unlicense from expression "Unlicense OR MIT"
])
# Generated Targets
rust_library(
name = "regex_automata",
srcs = glob(["**/*.rs"]),
crate_features = [
],
crate_root = "src/lib.rs",
data = [],
edition = "2015",
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-raze",
"crate-name=regex-automata",
"manual",
],
version = "0.1.10",
# buildifier: leave-alone
deps = [
],
)
# Unsupported target "default" with type "test" omitted

View file

@ -66,6 +66,15 @@ alias(
],
)
alias(
name = "csv",
actual = "@raze__csv__1_1_6//:csv",
tags = [
"cargo-raze",
"manual",
],
)
alias(
name = "env_logger",
actual = "@raze__env_logger__0_9_0//:env_logger",

View file

@ -100,3 +100,4 @@ unic-ucd-category = "0.9.0"
id_tree = "1.8.0"
zstd = { version="0.10.0", features=["zstdmt"] }
num_cpus = "1.13.1"
csv = "1.1.6"

View file

@ -66,6 +66,15 @@ alias(
],
)
alias(
name = "csv",
actual = "@raze__csv__1_1_6//:csv",
tags = [
"cargo-raze",
"manual",
],
)
alias(
name = "env_logger",
actual = "@raze__env_logger__0_9_0//:env_logger",

View file

@ -66,6 +66,15 @@ alias(
],
)
alias(
name = "csv",
actual = "@raze__csv__1_1_6//:csv",
tags = [
"cargo-raze",
"manual",
],
)
alias(
name = "env_logger",
actual = "@raze__env_logger__0_9_0//:env_logger",

View file

@ -66,6 +66,15 @@ alias(
],
)
alias(
name = "csv",
actual = "@raze__csv__1_1_6//:csv",
tags = [
"cargo-raze",
"manual",
],
)
alias(
name = "env_logger",
actual = "@raze__env_logger__0_9_0//:env_logger",

View file

@ -66,6 +66,15 @@ alias(
],
)
alias(
name = "csv",
actual = "@raze__csv__1_1_6//:csv",
tags = [
"cargo-raze",
"manual",
],
)
alias(
name = "env_logger",
actual = "@raze__env_logger__0_9_0//:env_logger",