diff --git a/.buckconfig b/.buckconfig new file mode 100644 index 000000000..027fddaa2 --- /dev/null +++ b/.buckconfig @@ -0,0 +1,16 @@ +[cells] +root = . +prelude = prelude +toolchains = toolchains +none = none + +[cell_aliases] +config = prelude +ovr_config = prelude +fbcode = none +fbsource = none +fbcode_macros = none +buck = none + +[parser] +target_platform_detector_spec = target:root//...->prelude//platforms:default diff --git a/.buckroot b/.buckroot new file mode 100644 index 000000000..e69de29bb diff --git a/.gitignore b/.gitignore index 05714bd77..219301b08 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,12 @@ Cargo.lock # Mac .DS_Store -.VSCodeCounter# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. +.VSCodeCounter # zmt agent data file -ztm_agent.db \ No newline at end of file +ztm_agent.db + +# buck2 out +buck-out \ No newline at end of file diff --git a/docs/development.md b/docs/development.md index 8438de189..6f7e6c837 100644 --- a/docs/development.md +++ b/docs/development.md @@ -19,6 +19,7 @@ ```bash $ git clone https://github.com/web3infra-foundation/mega.git $ cd mega + $ git submodule update --init --recursive $ cargo build ``` @@ -183,12 +184,13 @@ ```bash $ git clone https://github.com/web3infra-foundation/mega.git $ cd mega + $ git submodule update --init --recursive $ cargo build ``` 3. Install PostgreSQL and initialize database. - 1. Install PostgreSQL. + 1.Install PostgreSQL. ```bash $ pacman -S postgresql @@ -199,7 +201,7 @@ $ systemctl enable --now postgresql ``` - 2. Create database. + 2.Create database. ```bash $ sudo -u postgres psql postgres @@ -212,14 +214,14 @@ postgres=# \q ``` - 3. Import `mega/sql/postgres/pg_