Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,911 changes: 968 additions & 943 deletions Cargo.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ members = [
"mudud",
"mudu_package",
"mudu_transpiler",
"mudu_cli",
"mudup"]
"mudu_cli"]

[profile.release]
panic = "abort"
Expand Down
2 changes: 1 addition & 1 deletion doc/cfg/mududb_cfg.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Example mududb configuration for the Linux io_uring runtime path.
# Copy the values you need into ${HOME}/.mudu/mududb_cfg.toml or point mudud
# Copy the values you need into ${HOME}/.mududb/mududb_cfg.toml or point mudud
# at an equivalent config file in your deployment environment.

# The path to install application package
Expand Down
40 changes: 36 additions & 4 deletions doc/cn/how_to_start.cn.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# 如何开始

## 使用 `mudup` 快速安装

该路径用于服务器部署和日常使用,不需要从源码构建 MuduDB。

### 1. 安装 `mudup`

先从发布产物安装 `mudup`,然后执行:

```bash
curl --proto '=https' --tlsv1.2 -fsSL https://github.com/scuptio/mudup/releases/download/latest/mudup-init.sh | sh
mudup --help
```

### 2. 安装 MuduDB及其工具链

```bash
mudup install
```

该命令会安装并激活最新版本(`mudud`、`mcli`、`mpk`、`mgen`、`mtp`)。

### 3. 验证安装

```bash
mudud --version
mcli --version
```

如果 `${HOME}/.mududb/mududb_cfg.toml` 不存在,`mudup install` 会自动创建默认配置文件。

## 源码安装(用于开发部署)

## 克隆仓库

```bash
Expand Down Expand Up @@ -63,7 +95,7 @@ python -m pip install toml tomli-w
cargo install cargo-make
```

## 安装工具与 MuduDB Server
## 安装工具与 MuduDB Server(开发构建)

```bash
python script/build/install_binaries.py
Expand Down Expand Up @@ -91,11 +123,11 @@ python script/build/install_binaries.py --all-workspace-bins
在以下位置创建配置文件:

```bash
mkdir -p ${HOME}/.mudu
touch ${HOME}/.mudu/mududb_cfg.toml
mkdir -p ${HOME}/.mududb
touch ${HOME}/.mududb/mududb_cfg.toml
```

如果该文件不存在,`mudud` 首次启动时也会按默认值自动创建 `${HOME}/.mudu/mududb_cfg.toml`。
如果该文件不存在,`mudud` 首次启动时也会按默认值自动创建 `${HOME}/.mududb/mududb_cfg.toml`。

## 使用 MuduDB

Expand Down
42 changes: 37 additions & 5 deletions doc/en/how_to_start.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,43 @@
# How to Start

## Quick Install with `mudup`

This path is for server deployment and daily usage. It does not require building MuduDB from source.

### 1. Install `mudup`

Install `mudup` from the release artifact, then verify:

```bash
curl --proto '=https' --tlsv1.2 -fsSL https://github.com/scuptio/mudup/releases/download/latest/mudup-init.sh | sh
mudup --help
```

### 2. Install MuduDB and its toolchain

```bash
mudup install
```

This installs and activates the latest release (`mudud`, `mcli`, `mpk`, `mgen`, `mtp`).

### 3. Verify installation

```bash
mudud --version
mcli --version
```

`mudup install` also creates `${HOME}/.mududb/mududb_cfg.toml` with default values if it does not already exist.

## Source Build (For Development)

## Clone the Repository

```bash
git clone https://github.com/scuptio/mududb.git
```
## Prerequisite Setup(Ubuntu or Debian)
## Prerequisite Setup (Ubuntu or Debian)

### System packages

Expand Down Expand Up @@ -62,7 +94,7 @@ The example applications are driven by `cargo-make` task files, so installing it
cargo install cargo-make
```

## Install Tools and MuduDB Server
## Install Tools and MuduDB Server (Development Build)

```bash
python script/build/install_binaries.py
Expand Down Expand Up @@ -90,11 +122,11 @@ python script/build/install_binaries.py --all-workspace-bins
Create the configuration file at:

```bash
mkdir -p ${HOME}/.mudu
touch ${HOME}/.mudu/mududb_cfg.toml
mkdir -p ${HOME}/.mududb
touch ${HOME}/.mududb/mududb_cfg.toml
```

If the file does not exist, `mudud` also creates `${HOME}/.mudu/mududb_cfg.toml` automatically on first start with default values.
If the file does not exist, `mudud` also creates `${HOME}/.mududb/mududb_cfg.toml` automatically on first start with default values.

## Use MuduDB

Expand Down
2 changes: 1 addition & 1 deletion mudu_runtime/src/backend/mududb_cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl Default for MuduDBCfg {
}
}

const MUDUDB_CFG_TOML_PATH: &str = ".mudu/mududb_cfg.toml";
const MUDUDB_CFG_TOML_PATH: &str = ".mududb/mududb_cfg.toml";

impl MuduDBCfg {
pub fn component_target(&self) -> ComponentTarget {
Expand Down
2 changes: 1 addition & 1 deletion mudu_transpiler/src/rust/ts_const/md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d841cff12266549dd9533f4e4688a7e8
2583ec7795519a8d15541b9a8b6261f4
62 changes: 31 additions & 31 deletions mudu_transpiler/src/rust/ts_const/ts_field_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,34 @@
//
// field id

pub const FI_ALIAS: u16 = 1;
pub const FI_ALTERNATIVE: u16 = 2;
pub const FI_ARGUMENT: u16 = 3;
pub const FI_ARGUMENTS: u16 = 4;
pub const FI_BODY: u16 = 5;
pub const FI_BOUNDS: u16 = 6;
pub const FI_CONDITION: u16 = 7;
pub const FI_CONSEQUENCE: u16 = 8;
pub const FI_DEFAULT_TYPE: u16 = 9;
pub const FI_DOC: u16 = 10;
pub const FI_ELEMENT: u16 = 11;
pub const FI_FIELD: u16 = 12;
pub const FI_FUNCTION: u16 = 13;
pub const FI_INNER: u16 = 14;
pub const FI_LEFT: u16 = 15;
pub const FI_LENGTH: u16 = 16;
pub const FI_LIST: u16 = 17;
pub const FI_MACRO: u16 = 18;
pub const FI_NAME: u16 = 19;
pub const FI_OPERATOR: u16 = 20;
pub const FI_OUTER: u16 = 21;
pub const FI_PARAMETERS: u16 = 22;
pub const FI_PATH: u16 = 23;
pub const FI_PATTERN: u16 = 24;
pub const FI_RETURN_TYPE: u16 = 25;
pub const FI_RIGHT: u16 = 26;
pub const FI_TRAIT: u16 = 27;
pub const FI_TYPE: u16 = 28;
pub const FI_TYPE_ARGUMENTS: u16 = 29;
pub const FI_TYPE_PARAMETERS: u16 = 30;
pub const FI_VALUE: u16 = 31;
pub const FI_ALIAS : u16 = 1;
pub const FI_ALTERNATIVE : u16 = 2;
pub const FI_ARGUMENT : u16 = 3;
pub const FI_ARGUMENTS : u16 = 4;
pub const FI_BODY : u16 = 5;
pub const FI_BOUNDS : u16 = 6;
pub const FI_CONDITION : u16 = 7;
pub const FI_CONSEQUENCE : u16 = 8;
pub const FI_DEFAULT_TYPE : u16 = 9;
pub const FI_DOC : u16 = 10;
pub const FI_ELEMENT : u16 = 11;
pub const FI_FIELD : u16 = 12;
pub const FI_FUNCTION : u16 = 13;
pub const FI_INNER : u16 = 14;
pub const FI_LEFT : u16 = 15;
pub const FI_LENGTH : u16 = 16;
pub const FI_LIST : u16 = 17;
pub const FI_MACRO : u16 = 18;
pub const FI_NAME : u16 = 19;
pub const FI_OPERATOR : u16 = 20;
pub const FI_OUTER : u16 = 21;
pub const FI_PARAMETERS : u16 = 22;
pub const FI_PATH : u16 = 23;
pub const FI_PATTERN : u16 = 24;
pub const FI_RETURN_TYPE : u16 = 25;
pub const FI_RIGHT : u16 = 26;
pub const FI_TRAIT : u16 = 27;
pub const FI_TYPE : u16 = 28;
pub const FI_TYPE_ARGUMENTS : u16 = 29;
pub const FI_TYPE_PARAMETERS : u16 = 30;
pub const FI_VALUE : u16 = 31;
62 changes: 31 additions & 31 deletions mudu_transpiler/src/rust/ts_const/ts_field_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,34 @@
//
// field name

pub const ALIAS: &'static str = "alias";
pub const ALTERNATIVE: &'static str = "alternative";
pub const ARGUMENT: &'static str = "argument";
pub const ARGUMENTS: &'static str = "arguments";
pub const BODY: &'static str = "body";
pub const BOUNDS: &'static str = "bounds";
pub const CONDITION: &'static str = "condition";
pub const CONSEQUENCE: &'static str = "consequence";
pub const DEFAULT_TYPE: &'static str = "default_type";
pub const DOC: &'static str = "doc";
pub const ELEMENT: &'static str = "element";
pub const FIELD: &'static str = "field";
pub const FUNCTION: &'static str = "function";
pub const INNER: &'static str = "inner";
pub const LEFT: &'static str = "left";
pub const LENGTH: &'static str = "length";
pub const LIST: &'static str = "list";
pub const MACRO: &'static str = "macro";
pub const NAME: &'static str = "name";
pub const OPERATOR: &'static str = "operator";
pub const OUTER: &'static str = "outer";
pub const PARAMETERS: &'static str = "parameters";
pub const PATH: &'static str = "path";
pub const PATTERN: &'static str = "pattern";
pub const RETURN_TYPE: &'static str = "return_type";
pub const RIGHT: &'static str = "right";
pub const TRAIT: &'static str = "trait";
pub const TYPE: &'static str = "type";
pub const TYPE_ARGUMENTS: &'static str = "type_arguments";
pub const TYPE_PARAMETERS: &'static str = "type_parameters";
pub const VALUE: &'static str = "value";
pub const ALIAS : &'static str = "alias";
pub const ALTERNATIVE : &'static str = "alternative";
pub const ARGUMENT : &'static str = "argument";
pub const ARGUMENTS : &'static str = "arguments";
pub const BODY : &'static str = "body";
pub const BOUNDS : &'static str = "bounds";
pub const CONDITION : &'static str = "condition";
pub const CONSEQUENCE : &'static str = "consequence";
pub const DEFAULT_TYPE : &'static str = "default_type";
pub const DOC : &'static str = "doc";
pub const ELEMENT : &'static str = "element";
pub const FIELD : &'static str = "field";
pub const FUNCTION : &'static str = "function";
pub const INNER : &'static str = "inner";
pub const LEFT : &'static str = "left";
pub const LENGTH : &'static str = "length";
pub const LIST : &'static str = "list";
pub const MACRO : &'static str = "macro";
pub const NAME : &'static str = "name";
pub const OPERATOR : &'static str = "operator";
pub const OUTER : &'static str = "outer";
pub const PARAMETERS : &'static str = "parameters";
pub const PATH : &'static str = "path";
pub const PATTERN : &'static str = "pattern";
pub const RETURN_TYPE : &'static str = "return_type";
pub const RIGHT : &'static str = "right";
pub const TRAIT : &'static str = "trait";
pub const TYPE : &'static str = "type";
pub const TYPE_ARGUMENTS : &'static str = "type_arguments";
pub const TYPE_PARAMETERS : &'static str = "type_parameters";
pub const VALUE : &'static str = "value";
Loading
Loading