This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganising the repository - external renames and moves (#4074)
* Adding first rough ouline of the repository structure * Remove old CI stuff * add title * formatting fixes * move node-exits job's script to scripts dir * Move docs into subdir * move to bin * move maintainence scripts, configs and helpers into its own dir * add .local to ignore * move core->client * start up 'test' area * move test client * move test runtime * make test move compile * Add dependencies rule enforcement. * Fix indexing. * Update docs to reflect latest changes * Moving /srml->/paint * update docs * move client/sr-* -> primitives/ * clean old readme * remove old broken code in rhd * update lock * Step 1. * starting to untangle client * Fix after merge. * start splitting out client interfaces * move children and blockchain interfaces * Move trie and state-machine to primitives. * Fix WASM builds. * fixing broken imports * more interface moves * move backend and light to interfaces * move CallExecutor * move cli off client * moving around more interfaces * re-add consensus crates into the mix * fix subkey path * relieve client from executor * starting to pull out client from grandpa * move is_decendent_of out of client * grandpa still depends on client directly * lemme tests pass * rename srml->paint * Make it compile. * rename interfaces->client-api * Move keyring to primitives. * fixup libp2p dep * fix broken use * allow dependency enforcement to fail * move fork-tree * Moving wasm-builder * make env * move build-script-utils * fixup broken crate depdencies and names * fix imports for authority discovery * fix typo * update cargo.lock * fixing imports * Fix paths and add missing crates * re-add missing crates
- Loading branch information
Showing
809 changed files
with
8,332 additions
and
6,995 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ doc | |
.idea/ | ||
Dockerfile | ||
.dockerignore | ||
.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ rls*.log | |
*.orig | ||
*.rej | ||
**/wip/*.stderr | ||
.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/usr/bin/env bash | ||
|
||
# The script is meant to check if the rules regarding packages | ||
# dependencies are satisfied. | ||
# The general format is: | ||
# [top-lvl-dir]<[crate-name-prefix] | ||
|
||
# For instance no crate within `./client` directory | ||
# is allowed to import any crate with a directory path containing `paint`. | ||
# Such rule is just: `client<paint`. | ||
|
||
# The script should be run from the main repo directory! | ||
|
||
set -u | ||
|
||
PLEASE_DONT=( | ||
"client<paint" | ||
"client<node" | ||
"paint<node" | ||
"paint<client" | ||
"primitives<paint" | ||
"primitives<client" | ||
) | ||
|
||
VIOLATIONS=() | ||
PACKAGES=() | ||
|
||
for rule in "${PLEASE_DONT[@]}" | ||
do | ||
from=$(echo $rule | cut -f1 -d\<) | ||
to=$(echo $rule | cut -f2 -d\<) | ||
|
||
cd $from | ||
echo "Checking rule $rule" | ||
packages=$(find -name Cargo.toml | xargs grep -wn "path.*$to") | ||
has_references=$(echo -n $packages | wc -c) | ||
if [ "$has_references" != "0" ]; then | ||
VIOLATIONS+=("$rule") | ||
# Find packages that violate: | ||
PACKAGES+=("$packages") | ||
fi | ||
cd - > /dev/null | ||
done | ||
|
||
# Display violations and fail | ||
I=0 | ||
for v in "${VIOLATIONS[@]}" | ||
do | ||
cat << EOF | ||
=========================================== | ||
======= Violation of rule: $v | ||
=========================================== | ||
${PACKAGES[$I]} | ||
EOF | ||
I=$I+1 | ||
done | ||
|
||
exit ${#VIOLATIONS[@]} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.