Skip to content
C

Crepe

Datalog compiler embedded in Rust as a procedural macro

by ekzhangFree

#3247in Developer Tools
0In stores

Description

Crepe is a Rust library for writing declarative logic programs with a Datalog-like syntax. Its crepe! procedural macro compiles the rules in…

Highlights

  • Datalog-style rules compiled by a Rust macro
  • Semi-naive evaluation and stratified negation
  • Automatic indices for relations
  • Call Rust functions from rules

Ratings & Reviews

No ratings yet

Be the first to rate Crepe.

People also visit

S

Souffle

Soufflé is a variant of Datalog for tool designers crafting analyses in Horn…

Utilities
Launch
R

rust-engineer

Writes, reviews, and debugs idiomatic Rust code

AI Skills
Get
R

Rust Playground

Run snippets of Rust programming language

Developer Tools
Launch
M

m11-ecosystem

Integrating crates or ecosystem questions

AI Skills
Get
S

Scryer Prolog

A modern Prolog implementation written mostly in Rust

Developer Tools
Launch
C

Competitive Programming RS

Algorithm Snippets for Competitive Programming in Rust

Developer Tools
Launch

Crepe FAQ

What is Crepe?

A library for writing declarative logic programs in Rust, using a Datalog-like syntax.

How is it used?

You declare @input and @output relations and rules inside the crepe! macro. It generates a Crepe struct and a struct for each relation in the current module.

Is it fast?

The README says its benchmarks run at comparable speed to compiled Souffle, and use a fraction of the compilation time.

Can rules call Rust code?

Yes. The README says Rust functions can be called easily from within Datalog rules.

What was it inspired by?

Souffle and Formulog, which the README names as using similar Datalog compilation models for static analysis.

What are the best Crepe alternatives?

Popular alternatives to Crepe include Rust Playground, Scryer Prolog and Competitive Programming RS. See all Crepe alternatives

Developer Stuff

Badges