cddl
Concise data definition language (RFC 8610) implementation and JSON and CBOR validator in Rust
파일 탐색기
최종 버전 다운로드 (.zip)- settings.json
- devcontainer.json
- Dockerfile
- .gitignore
- settings.json
- action.yml
- mood.md
- anchore.yml
- ci-doctor.lock.yml
- ci-doctor.md
- ci.yml
- codeql.yml
- compilation-check.yml
- dependabot-auto-merge.yml
- lsp-extension.yml
- publish-vscode-extension.yml
- publish-website.yml
- publish.yml
- release-cddl.yml
- release-pr.yml
- release-vscode-extension.yml
- cddl-release-drafter.yml
- copilot-instructions.md
- dependabot.yml
- release-drafter.yml
- vscode-extension-release-drafter.yml
- settings.json
- codegen.rs
- lib.rs
- byte_strings.cddl
- cbor_tags.cddl
- documented.cddl
- options.cddl
- schema.cddl
- wildcard_entries.cddl
- cddl_attr.rs
- cddl_byte_strings.rs
- cddl_cbor_tags.rs
- cddl_doc_comments.rs
- cddl_options.rs
- cddl_typegen.rs
- cddl_wildcard_entries.rs
- Cargo.toml
- launch.json
- settings.json
- tasks.json
- completion.test.ts
- diagnostics.test.ts
- helper.ts
- index.ts
- runTest.ts
- extension.ts
- completion.cddl
- control-operator-test.cddl
- coswid-example.cddl
- empty.cddl
- first-rule-root-test.cddl
- formatting-test.cddl
- hyphenated-identifiers.cddl
- intellisense-demo.cddl
- line-break-test.cddl
- markdown-cddl.md
- regexp.cddl
- trailing-comma-test.cddl
- unused-rule-test.cddl
- package-lock.json
- package.json
- tsconfig.json
- tsconfig.tsbuildinfo
- webpack.config.js
- cddl-in-docs.md
- e2e.sh
- keywords.ts
- server.ts
- package-lock.json
- package.json
- tsconfig.json
- tsconfig.tsbuildinfo
- webpack.config.js
- cddl-codeblock.json
- cddl.tmLanguage.json
- .gitignore
- .vscodeignore
- language-configuration.json
- package-lock.json
- package.json
- README.md
- shared.webpack.config.js
- test-cddl-markdown.md
- test-first-rule.js
- tsconfig.json
- mod.rs
- parent.rs
- cli.rs
- cbor.rs
- cbor_value.rs
- control.rs
- csv_validator.rs
- json.rs
- mod.rs
- error.rs
- lexer.rs
- lib.rs
- parser.rs
- parser_tests.rs
- pest_bridge.rs
- pest_parser.rs
- token.rs
- visitor.rs
- arrays.cddl
- byron.cddl
- coswid.cddl
- csv-sid-file.cddl
- csv-simple.cddl
- csv-with-header.cddl
- diddoc.cddl
- jcrsnippet.cddl
- precedence01.cddl
- reputon.cddl
- reputon_nocommas.cddl
- shelley.cddl
- socketplug.cddl
- tricky.cddl
- sid-file.csv
- simple.csv
- with-header.csv
- accept.cddl
- accept_example1.cbor
- accept_example1.json
- accept_example2.cbor
- accept_example2.json
- accept_example3.cbor
- accept_example3.json
- assertionMethod.cbor
- assertionMethod.cddl
- assertionMethod_example7.json
- authentication.cddl
- authentication_example8.cbor
- authentication_example8.json
- authentication_example8b.cbor
- authentication_example8b.json
- capabilityDelegation.cddl
- capabilityDelegation_example9.cbor
- capabilityDelegation_example9.json
- capabilityInvocation.cddl
- capabilityInvocation_example10.cbor
- capabilityInvocation_example10.json
- contentType.cbor
- contentType.cddl
- contentType.json
- bad-context.json
- context.cddl
- context_eample1b.json
- context_example1.json
- context_example1a.json
- example1.cbor
- example1.json
- good_context.cbor
- good_context.json
- controller.cddl
- controller_example3.cbor
- controller_example3.json
- created.cbor
- created.cddl
- created.json
- did.cddl
- did_example1.json
- did_example2.json
- did-url.cddl
- did-url_example1.json
- bad-example12.cbor
- bad-example1a.cbor
- bad-example2.cbor
- bad-example2.json
- bad-example3.cbor
- did-document.cddl
- error.cddl
- error_example1.json
- ethereumAddress.cddl
- ethereumAddress_example12.cbor
- ethereumAddress_example12.json
- id.cddl
- id_example2.cbor
- id_example2.json
- keyAgreement.cddl
- keyAgreement_example11.cbor
- keyAgreement_example11.json
- publicKeyBase58.cddl
- publicKeyBase58_example.cbor
- publicKeyBase58_example.json
- publicKeyGpg.cddl
- publicKeyGpg_example18.cbor
- publicKeyGpg_example18.json
- publicKeyHex.cddl
- publicKeyHex_example13.json
- publicKeyJwk.cddl
- publicKeyJwk_example14.cbor
- publicKeyJwk_example14.json
- publicKeyJwk_example14b.cbor
- publicKeyJwk_example14b.json
- publicKeyPem.cddl
- publicKeyPem_example.cbor
- publicKeyPem_example.json
- bad-service_example1.json
- service.cddl
- serviceEndpoint.cddl
- serviceEndpoint.json
- updated.cbor
- updated.cddl
- updated.json
- verificationMethod.cddl
- verificationMethod_example.cbor
- verificationMethod_example.json
- version-time.cddl
- version-time_example1.cbor
- version-time_example1.json
- reputon.json
- mod.rs
- Cargo.toml
- bignum.rs
- byte_string_literal_diagnostics.rs
- cbor.rs
- cbor_array_sequence.rs
- cbor_primitive_member_key_context.rs
- cbor_size_bug.rs
- cbor_table_map_candidate_location.rs
- cddl.rs
- csv.rs
- did.rs
- freezer.rs
- grammar.rs
- incremental_group_choices.rs
- incremental_type_choices.rs
- json_array_sequence.rs
- map_table_complete_pair_claims.rs
- member_key_forms.rs
- nested_group_parse_perf.rs
- parser.rs
- radix_literals.rs
- range_endpoints.rs
- wasm.rs
- wildcard_key_order.rs
- cddl-completion.js
- file-io.js
- instance-validation.js
- outline.js
- sample-gen.js
- share.js
- shortcuts.js
- toast.js
- bootstrap.js
- cddl.js
- index.html
- index.js
- package-lock.json
- package.json
- webpack.config.js
- webpack.config.prod.js
- .dockerignore
- .gitattributes
- .gitignore
- .grype.yaml
- .npmrc
- .rustfmt.toml
- build.rs
- Cargo.lock
- Cargo.toml
- cddl.code-workspace
- cddl.pest
- Dockerfile
- flake.lock
- flake.nix
- LICENSE
- README.md
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/anweiss/cddl
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd cddl
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. 공식 설치 스크립트
쉬움 추천사전 준비물
- Rust (rustup) cargo 명령어를 쓰려면 Rust가 필요합니다.
cargo install cddl
crates.io에 배포된 패키지를 빌드해서 설치합니다. 레포를 직접 클론할 필요가 없습니다.
설치 후 새 터미널을 열고, 프로그램의 버전 확인 명령(예: --version)으로 정상 설치됐는지 확인하세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
3. Docker
쉬움사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
docker pull ghcr.io/anweiss/cddl-cli:latest
이 명령어를 터미널에 그대로 입력해 실행하세요.
docker run -it --rm -v $PWD:/cddl -w /cddl ghcr.io/anweiss/cddl-cli:<version> help
빌드된 이미지를 실제 컨테이너로 실행합니다.
docker run -i --rm -v $PWD:/data -w /data ghcr.io/anweiss/cddl-cli:0.10.7 validate --cddl reputon.cddl --stdin < reputon.json
빌드된 이미지를 실제 컨테이너로 실행합니다.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
4. Node.js
쉬움사전 준비물
cd cddl-lsp/client
이 프로젝트의 관련 파일이 하위 폴더 안에 있어서, 먼저 그 폴더로 이동합니다.
npm install
package.json에 명시된 라이브러리들을 내려받아 설치합니다.
npm start
개발/실행 서버를 켭니다.
명령어 실행 후 터미널에 나타나는 주소(보통 http://localhost:3000 형태)를 브라우저에서 열어보세요.
5. Rust
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Rust (rustup) rustup으로 설치하면 cargo도 함께 설치됩니다.
cargo install cddl
crates.io에 배포된 패키지를 빌드해서 설치합니다. 레포를 직접 클론할 필요가 없습니다.
The lexer and parser can be used in a `no_std` context (including bare-metal targets such as `thumbv7em-none-eabihf`) provided that a heap allocator is available. This is enabled by opting out of the default features in your `Cargo.toml` file:
이 명령어를 터미널에 그대로 입력해 실행하세요.
cargo build가 에러 없이 끝나면 성공입니다. target/ 폴더에 실행 파일이 생성됩니다.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
// repository documentation
Was this content helpful?
(0 ratings)
