Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.
bdarcusPublic archive

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

I'm archiving this, in favor of a pure Rust implementation, from which the JSON schemas are generated.

A demo of CSL-next codegen using quicktype

This is a demo repo of how code generation from the typescript models might work. It consists of:

  1. a script to generate the rust bibliography.rs, style.rs, and citation.rs module files
  2. a tiny main.rs that creates a csln-rs binary

Here's all that binary will do, but it demonstrates the deserialization and serialization of JSON or YAML Style or InputBibliography input files.

❯ time csln-rs style.csl.yaml bibliography.yaml
The name of the style is: "APA"
The number of entries in the bibliography is: 5

________________________________________________________
Executed in    2.74 millis    fish           external
   usr time    1.16 millis  406.00 micros    0.75 millis
   sys time    1.62 millis  115.00 micros    1.51 millis

Because of a few limitations, I've decided to commit static source files based on the conversions, but modified in a few places, and output the generated files to a generated directory instead.

The Style model is fairly big, and even if I'd say it's simplified, it's still fairly complex.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages