Skip to content

Commit d2f0766

Browse files
committed
clean transpile (rust, cpp, ts, py), benchmarks
1 parent 167c1cf commit d2f0766

43 files changed

Lines changed: 6068 additions & 2197 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.enc.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ MODEL="gemini-3-flash-preview"
1212
#MODEL="minimax-m2.1:Q3_K_M"
1313

1414
# maximum number of tokens for the LLM to generate (defaults to model max)
15-
MAX_TOKENS=65536
15+
MAX_TOKENS=64000
1616

1717
# maximum tokens for deep thought
1818
#THINKING_BUDGET=32768

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ target/
77
/testdata/output/
88
/enc-cpp
99
/examples/interlang/main
10+
node_modules
11+
/build
12+
/benchmarks/logs/

CMakeLists.txt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ project(
55
VERSION 0.3.1
66
LANGUAGES CXX)
77

8-
set_property(TARGET enc PROPERTY CXX_STANDARD 20)
9-
108
add_executable(enc-cpp src/enc.cpp)
9+
target_compile_features(enc-cpp PRIVATE cxx_std_20)
10+
11+
find_package(cpr REQUIRED)
12+
find_package(nlohmann_json REQUIRED)
13+
find_package(CLI11 REQUIRED)
14+
find_package(fmt REQUIRED)
1115

12-
find_library(CPR_LIBRARY cpr)
13-
if(CPR_LIBRARY)
14-
target_link_libraries(enc-cpp PUBLIC ${CPR_LIBRARY})
15-
endif()
16+
target_link_libraries(enc-cpp PRIVATE
17+
cpr::cpr
18+
nlohmann_json::nlohmann_json
19+
CLI11::CLI11
20+
fmt::fmt
21+
)

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ run `make hello` for a quick test during development
1212

1313
run `make test` for comprehensive tests before committing to git
1414

15-
if there are intentional changes to behavior run `make update-goldens`
15+
if there are intentional changes to behavior run `make update-testdata`
1616

1717
always inspect the goldens diff closely
1818

1919
## release
2020

21+
run `make TEST_COMMAND="make test-rust" transpile-rust`
22+
2123
update version in Cargo.toml
2224

2325
prepare a release with `make release`

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
[package]
22
name = "enc"
3-
version = "0.7.0"
3+
version = "0.8.0"
44
edition = "2021"
55

6+
[[bin]]
7+
name = "enc"
8+
path = "src/enc.rs"
9+
610
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
711

812
[dependencies]

0 commit comments

Comments
 (0)