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
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: CI

on:
push: { branches: ["**"] }
pull_request: { branches: ["**"] }
push:
branches:
- master
tags:
- "*"
pull_request:

jobs:
ci:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/sec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Security

on:
push:
branches:
- master
tags:
- "*"
pull_request:

jobs:
cargo-deny:
name: Cargo Deny
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install cargo-deny (fast)
uses: taiki-e/install-action@v2
with:
tool: cargo-deny

- name: Cache advisory DB
uses: actions/cache@v4
with:
path: ~/.cargo/advisory-db
key: advisory-db-v1

- name: Run cargo-deny
run: cargo deny check licenses bans advisories sources
6 changes: 0 additions & 6 deletions LICENSE → LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
Copyright (c) 2015 Manuel Alonso



Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:



The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.



THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ See the full example [here](https://github.com/manute/rawsql/tree/master/example

## License

Copyright © 2015 Manuel Alonso

MIT License
Licensed under:
- MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)

### Why not execute SQL this lib?
In rust there is not yet a general driver like *JDBC* or go's *database/sql* so I decide to abstract first the parser of sql files to use directly with the libs already exists for each DB.
26 changes: 26 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# deny.toml
[licenses]
# We want really high confidence when inferring licenses from text
confidence-threshold = 0.93
allow = [
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"MIT",
"BSD-3-Clause",
"ISC",
"Unicode-3.0",
"Zlib",
]
exceptions = [
# Use exceptions for these as they only have a single user
{ allow = ["CDLA-Permissive-2.0"], crate = "webpki-roots" },
]

[sources]
unknown-registry = "deny"
unknown-git = "deny"

[advisories]
unmaintained = "workspace"
ignore = [
]