Skip to content

Commit cfda954

Browse files
committed
made very rough and rough demo
1 parent eaaf6a9 commit cfda954

File tree

6 files changed

+422
-325
lines changed

6 files changed

+422
-325
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
2-
name = "calcit_std"
2+
name = "calcit_http"
33
version = "0.0.3"
44
authors = ["jiyinyiyong <[email protected]>"]
55
edition = "2018"
66

77
[lib]
8-
name = "calcit_std"
8+
name = "calcit_http"
99
path = "src/lib.rs"
1010
crate-type = ["dylib"] # Creates dynamic lib
1111

@@ -15,3 +15,4 @@ crate-type = ["dylib"] # Creates dynamic lib
1515
[dependencies]
1616
cirru_edn = "0.1.12"
1717
cirru_parser = "0.1.8"
18+
tiny_http = "0.8"

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
## Workflow
1+
## HTTP server binding for Calcit
22

3-
> Rust libray for Calcit runtime.
3+
> Rust HTTP library for Calcit runtime.
44
55
### Usages
66

77
APIs:
88

99
```cirru
10-
lib.core/path-exists? a
10+
http.core/serve-http? $ {}
11+
:port 4000
1112
```
1213

1314
Install to `~/.config/calcit/modules/`, compile and provide `*.{dylib,so}` file with `./build.sh`.

0 commit comments

Comments
 (0)