diff --git a/Cargo.toml b/Cargo.toml index e921a1f..07a861f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,8 @@ name = "polyscribe" version = "0.1.0" edition = "2024" +license = "MIT" +license-file = "LICENSE" [features] # Default: CPU only; no GPU features enabled diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..dfbf153 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 + +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 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index fb8def6..b462308 100644 --- a/README.md +++ b/README.md @@ -75,3 +75,8 @@ See the examples/ directory for copy-paste scripts: - examples/transcribe_file.sh - examples/update_models.sh - examples/download_models_interactive.sh + +License +------- + +This project is licensed under the MIT License — see the LICENSE file for details. diff --git a/build.rs b/build.rs index 539dcf2..cce4c63 100644 --- a/build.rs +++ b/build.rs @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2025 . All rights reserved. + fn main() { // Only run special build steps when gpu-vulkan feature is enabled. let vulkan_enabled = std::env::var("CARGO_FEATURE_GPU_VULKAN").is_ok(); diff --git a/examples/download_models_interactive.sh b/examples/download_models_interactive.sh index 42f9145..ecff86a 100644 --- a/examples/download_models_interactive.sh +++ b/examples/download_models_interactive.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2025 . All rights reserved. set -euo pipefail # Launch the interactive model downloader and select models to install diff --git a/examples/transcribe_file.sh b/examples/transcribe_file.sh index 844daf6..280b48f 100644 --- a/examples/transcribe_file.sh +++ b/examples/transcribe_file.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2025 . All rights reserved. set -euo pipefail # Transcribe an audio/video file to JSON and SRT into ./output diff --git a/examples/update_models.sh b/examples/update_models.sh index 9b8de0a..b04ce59 100644 --- a/examples/update_models.sh +++ b/examples/update_models.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2025 . All rights reserved. set -euo pipefail # Verify/update local models non-interactively (useful in CI) diff --git a/src/backend.rs b/src/backend.rs index 778fb2b..ee0db74 100644 --- a/src/backend.rs +++ b/src/backend.rs @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2025 . All rights reserved. + //! Transcription backend selection and implementations (CPU/GPU) used by PolyScribe. use crate::OutputEntry; use crate::{decode_audio_to_pcm_f32_ffmpeg, find_model_file}; diff --git a/src/lib.rs b/src/lib.rs index d8cfeb9..b82bcf8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2025 . All rights reserved. + #![forbid(elided_lifetimes_in_paths)] #![forbid(unused_must_use)] #![deny(missing_docs)] diff --git a/src/main.rs b/src/main.rs index cb5e62f..4ea02d1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2025 . All rights reserved. + use std::fs::{File, create_dir_all}; use std::io::{self, Read, Write}; use std::path::{Path, PathBuf}; diff --git a/src/models.rs b/src/models.rs index 54379cf..9ba98c5 100644 --- a/src/models.rs +++ b/src/models.rs @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2025 . All rights reserved. + //! Model discovery, selection, and downloading logic for PolyScribe. use std::collections::BTreeMap; use std::env; diff --git a/tests/integration_aux.rs b/tests/integration_aux.rs index 3cb1706..27747a6 100644 --- a/tests/integration_aux.rs +++ b/tests/integration_aux.rs @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2025 . All rights reserved. + use std::process::Command; fn bin() -> &'static str { diff --git a/tests/integration_cli.rs b/tests/integration_cli.rs index 2d96d99..17e2d8f 100644 --- a/tests/integration_cli.rs +++ b/tests/integration_cli.rs @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2025 . All rights reserved. + use std::fs; use std::io::Read; use std::path::{Path, PathBuf};