Remix.run Logo
kvemkon 8 hours ago

SQLite 3.51.1

  $ wc -l ...
  265908 sqlite-amalgamation-3510100/sqlite3.c
Is there any as large as possible single source (or normal with amalgamation version) more or less meaningful project that could be compiled directly with rustc -o executable src.rs? Just to compare build time / memory consumption.
nine_k 7 hours ago | parent | next [-]

The sqlite3.c file is generated from more finely-grained real sources, see https://www.sqlite.org/src/doc/trunk/README.md

qznc 7 hours ago | parent | prev | next [-]

SQLite is only deployed as a single file but the original sources are multiple files. They call it "The Amalgamation".

https://sqlite.org/src/doc/trunk/README.md

kvemkon 7 hours ago | parent [-]

Yes, that's why I've asked about possible rust support of creating such version of normal project. The main issue, I'm unaware of comparably large rust projects without 3rdparty dependencies.

nine_k 7 hours ago | parent [-]

From my daily-use utilities, ripgrep and bat seem to have zero dependencies.

kzrdude 5 hours ago | parent | next [-]

I believe ripgrep has only or mostly dependencies that the main author also controls. It's structured so that ripgrep depends on regex crates by the same author, for example.

kvemkon 7 hours ago | parent | prev [-]

Looking at Cargo.toml, ripgrep seems to have some dependencies and bat has a lot.

7 hours ago | parent | prev [-]
[deleted]