Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
26 changes: 26 additions & 0 deletions .buckconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[cells]
root = .
prelude = prelude
toolchains = toolchains
none = none

[cell_aliases]
config = prelude
ovr_config = prelude
fbcode = none
fbsource = none
fbcode_macros = none
buck = none

# Uses a copy of the prelude bundled with the buck2 binary. You can alternatively delete this
# section and vendor a copy of the prelude to the `prelude` directory of your project.
[external_cells]
prelude = bundled

[parser]
target_platform_detector_spec = target:root//...->prelude//platforms:default \
target:prelude//...->prelude//platforms:default \
target:toolchains//...->prelude//platforms:default

[build]
execution_platforms = prelude//platforms:default
Empty file added .buckroot
Empty file.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ target/

.venv/
__pycache__/
.pytest_cache/
.pytest_cache/

buck-out/
11 changes: 11 additions & 0 deletions BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# A list of available rules and their signatures can be found here: https://buck2.build/docs/prelude/globals/

rust_binary(
name = "cli",
srcs = glob(["crates/pngme-cli/src/*.rs"]),
crate_root = "crates/pngme-cli/src/main.rs",
deps = [
"root//crates/pngme:library",
"//third-party/rust:clap",
],
)
12 changes: 12 additions & 0 deletions crates/pngme/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
rust_library(
name = "library",
crate = "pngme_lib",
srcs = glob(["src/**/*.rs"]),
crate_root = "src/lib.rs",
visibility = ["PUBLIC"],
deps = [
"//third-party/rust:snafu",
"//third-party/rust:nom",
"//third-party/rust:crc",
],
)
Loading
Loading