A yet another validation library provides a macro inspired by Accord.
The source code is hosted in several repos, but developed mainly on GitLab.com.
The merge/pull requests or issues on any repository are welcomed.
zsh
% cargo install adequate
See src/validation
directory for validators.
```rust use adequate::validation::length;
// inputs let fullname = "Albrecht Dürer".tostring(); let username = "albrecht".tostring();
let result = validate! { "fullname" => fullname => [length::max(3)], "username" => username => [length::within(3..9)] }; assert!(result.is_err()); ```
Check make help
```zsh
% make build:debug ```
```zsh
% make verify:all ```
zsh
% make test
Run CI jobs on local docker conatiner (Gentoo Linux) using gitlab-runner.
See .gitlab-ci.yml
.
```zsh
% .tool/setup-gitlab-runner
% cp .env.ci.sample .env
% .tool/ci-runner test ```
All notable released changes of this package will be documented in CHANGELOG file.
```text Adequate Copyright 2020 Yasuhiro Яша Asaka
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```