Skip to content

system to compile dafny on a remote server.

Notifications You must be signed in to change notification settings

nazime1/dafny-server

 
 

Repository files navigation

Dafny Server

Single dockerfile to verify arbitrary Dafny code.

Endpoints

/health (GET)

Returns the current queue length of compilations. Can be used for health detection and load balancing in k8s.

/compile (POST)

Compiles the given dafny files. Does not give any verification that the service is up until it is finished compiling (long queue can generate wait times as high as 10 seconds)

The body of a compilation request should adhere to the following JSON format (an example can be seen in demo.js):

{
    requester: "<identifier of requesting body>", // not currently in use
    files: [
        //list of dafny files, all will be automatically linked and compiled as a unit.
        {
            name: "<filename>.dfy",
            content: "<file contents>"
        }
    ]
}

About

system to compile dafny on a remote server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 87.1%
  • JavaScript 5.4%
  • Shell 4.7%
  • Dockerfile 2.8%