From d28d69443889fc8fb2374705498432833161a943 Mon Sep 17 00:00:00 2001 From: xmh0511 <970252187@qq.com> Date: Fri, 30 Aug 2024 19:58:43 +0800 Subject: [PATCH] update license --- README.md | 2 +- flake.lock | 82 ------------------------------------------------------ flake.nix | 28 ------------------- 3 files changed, 1 insertion(+), 111 deletions(-) delete mode 100644 flake.lock delete mode 100644 flake.nix diff --git a/README.md b/README.md index 7cc085f..33b0657 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Tun/Tap interfaces ============== [![Crates.io](https://img.shields.io/crates/v/tun-rs.svg)](https://crates.io/crates/tun-rs) ![tun-rs](https://docs.rs/tun-rs/badge.svg) -![WTFPL](http://img.shields.io/badge/license-WTFPL-blue.svg) +![Apache-2.0](https://img.shields.io/github/license/xmh0511/tun-rs?style=flat) This crate allows the creation and usage of Tun/Tap interfaces, the aim is to make this cross-platform. diff --git a/flake.lock b/flake.lock deleted file mode 100644 index 63f4507..0000000 --- a/flake.lock +++ /dev/null @@ -1,82 +0,0 @@ -{ - "nodes": { - "fenix": { - "inputs": { - "nixpkgs": [ - "nixpkgs" - ], - "rust-analyzer-src": "rust-analyzer-src" - }, - "locked": { - "lastModified": 1629858211, - "narHash": "sha256-YyQvCmRekZ5QGN9RObUZWg6Pqmi5+idTZ5Ew1Ct5tEk=", - "owner": "nix-community", - "repo": "fenix", - "rev": "495510be4bc7ccf03b54ff4226fcc7b01fcf62ee", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "fenix", - "type": "github" - } - }, - "nixpkgs": { - "locked": { - "lastModified": 1629827819, - "narHash": "sha256-cysfDbdjTluO+UtuT6iRrf/2Lt7Qo/qRlpz9F5rz3Sc=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "503209808cd613daed238e21e7a18ffcbeacebe3", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "fenix": "fenix", - "nixpkgs": "nixpkgs", - "utils": "utils" - } - }, - "rust-analyzer-src": { - "flake": false, - "locked": { - "lastModified": 1629817082, - "narHash": "sha256-qdKZss+bNccS8FJsKbkVGZGISiAGlQ/Se1PFlcroVEk=", - "owner": "rust-analyzer", - "repo": "rust-analyzer", - "rev": "ce4670f299d72a0f23f347b5df9790aca72da617", - "type": "github" - }, - "original": { - "owner": "rust-analyzer", - "ref": "nightly", - "repo": "rust-analyzer", - "type": "github" - } - }, - "utils": { - "locked": { - "lastModified": 1629481132, - "narHash": "sha256-JHgasjPR0/J1J3DRm4KxM4zTyAj4IOJY8vIl75v/kPI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "997f7efcb746a9c140ce1f13c72263189225f482", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/flake.nix b/flake.nix deleted file mode 100644 index 70f19ab..0000000 --- a/flake.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ - inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; - utils.url = "github:numtide/flake-utils"; - fenix = { - url = "github:nix-community/fenix"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - }; - - outputs = { self, utils, nixpkgs, fenix, }: utils.lib.eachDefaultSystem (system: let - pkgs = nixpkgs.legacyPackages.${system}; - rust = fenix.packages.${system}; - lib = pkgs.lib; - in { - devShell = pkgs.mkShell { - buildInputs = with pkgs; with llvmPackages; [ - # For building. - clang rust.stable.toolchain pkg-config openssl libsodium libclang.lib - ]; - - LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib"; - RUST_BACKTRACE = 1; - # RUST_LOG = "info,sqlx::query=warn"; - RUSTFLAGS = "-C target-cpu=native"; - }; - }); -}