diff options
| -rw-r--r-- | LICENSE | 40 | ||||
| -rw-r--r-- | build.rs | 43 | ||||
| -rw-r--r-- | cbindgen.toml | 43 | ||||
| -rw-r--r-- | dome_key_map.h | 43 | ||||
| -rw-r--r-- | src/config.rs | 43 | ||||
| -rw-r--r-- | src/errors.rs | 43 | ||||
| -rw-r--r-- | src/ffi.rs | 43 | ||||
| -rw-r--r-- | src/key_code.rs | 43 | ||||
| -rw-r--r-- | src/lib.rs | 43 | ||||
| -rw-r--r-- | src/map.rs | 43 | ||||
| -rw-r--r-- | src/parser.rs | 43 | ||||
| -rw-r--r-- | src/prefix_println.rs | 43 | ||||
| -rw-r--r-- | src/trial.rs | 43 |
13 files changed, 556 insertions, 0 deletions
@@ -0,0 +1,40 @@ +Copyright (c) 2018 Teddy Wing + +*Purchasing policy notice:* All users of the software are expected to +purchase a license from Teddy Wing unless they have a good reason not to +pay. Users who can't purchase a license may apply to receive one for free +at inquiry@domekey.teddywing.com. Users are free to: + +* download, build, and modify the app; +* share the modified source code; +* share the purchased or custom-built binaries (with unmodified license + and contact info), provided that the purchasing policy is explained to + all potential users. + +This software is available under a modified version of the Open Community +Indie Software License: + +Permission to use, copy, modify, and/or distribute this software for any +purpose is hereby granted, subject to the following conditions: + +* all copies retain the above copyright notice, the above purchasing + policy notice and this permission notice unmodified; + +* all copies retain the name of the software (DomeKey), the name of the + author (Teddy Wing), and contact information (including, but not limited + to, inquiry@domekey.teddywing.com, and domekey.teddywing.com URLs) + unmodified; + +* no fee is charged for distribution of the software; + +* the best effort is made to explain the purchasing policy to all users of + the software. + +THE SOFTWARE IS PROVIDED "AS IS", AND THE AUTHOR AND COPYRIGHT HOLDERS +DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, +INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER +IN AN ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING +OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. @@ -1,3 +1,46 @@ +// Copyright (c) 2018 Teddy Wing +// +// This file is part of DomeKey. +// +// *Purchasing policy notice:* All users of the software are expected to +// purchase a license from Teddy Wing unless they have a good reason not to +// pay. Users who can't purchase a license may apply to receive one for free +// at inquiry@domekey.teddywing.com. Users are free to: +// +// * download, build, and modify the app; +// * share the modified source code; +// * share the purchased or custom-built binaries (with unmodified license +// and contact info), provided that the purchasing policy is explained to +// all potential users. +// +// This software is available under a modified version of the Open Community +// Indie Software License: +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose is hereby granted, subject to the following conditions: +// +// * all copies retain the above copyright notice, the above purchasing +// policy notice and this permission notice unmodified; +// +// * all copies retain the name of the software (DomeKey), the name of the +// author (Teddy Wing), and contact information (including, but not limited +// to, inquiry@domekey.teddywing.com, and domekey.teddywing.com URLs) +// unmodified; +// +// * no fee is charged for distribution of the software; +// +// * the best effort is made to explain the purchasing policy to all users of +// the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", AND THE AUTHOR AND COPYRIGHT HOLDERS +// DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, +// INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +// DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER +// IN AN ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING +// OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + extern crate cbindgen; use std::env; diff --git a/cbindgen.toml b/cbindgen.toml index 765b02f..76da0b4 100644 --- a/cbindgen.toml +++ b/cbindgen.toml @@ -1,6 +1,49 @@ language = "C" include_guard = "DOME_KEY_MAP_H" include_version = true +header = ''' +// Copyright (c) 2018 Teddy Wing +// +// This file is part of DomeKey. +// +// *Purchasing policy notice:* All users of the software are expected to +// purchase a license from Teddy Wing unless they have a good reason not to +// pay. Users who can't purchase a license may apply to receive one for free +// at inquiry@domekey.teddywing.com. Users are free to: +// +// * download, build, and modify the app; +// * share the modified source code; +// * share the purchased or custom-built binaries (with unmodified license +// and contact info), provided that the purchasing policy is explained to +// all potential users. +// +// This software is available under a modified version of the Open Community +// Indie Software License: +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose is hereby granted, subject to the following conditions: +// +// * all copies retain the above copyright notice, the above purchasing +// policy notice and this permission notice unmodified; +// +// * all copies retain the name of the software (DomeKey), the name of the +// author (Teddy Wing), and contact information (including, but not limited +// to, inquiry@domekey.teddywing.com, and domekey.teddywing.com URLs) +// unmodified; +// +// * no fee is charged for distribution of the software; +// +// * the best effort is made to explain the purchasing policy to all users of +// the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", AND THE AUTHOR AND COPYRIGHT HOLDERS +// DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, +// INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +// DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER +// IN AN ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING +// OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.''' [export] item_types = [ diff --git a/dome_key_map.h b/dome_key_map.h index 5dbd398..9c165fc 100644 --- a/dome_key_map.h +++ b/dome_key_map.h @@ -1,3 +1,46 @@ +// Copyright (c) 2018 Teddy Wing +// +// This file is part of DomeKey. +// +// *Purchasing policy notice:* All users of the software are expected to +// purchase a license from Teddy Wing unless they have a good reason not to +// pay. Users who can't purchase a license may apply to receive one for free +// at inquiry@domekey.teddywing.com. Users are free to: +// +// * download, build, and modify the app; +// * share the modified source code; +// * share the purchased or custom-built binaries (with unmodified license +// and contact info), provided that the purchasing policy is explained to +// all potential users. +// +// This software is available under a modified version of the Open Community +// Indie Software License: +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose is hereby granted, subject to the following conditions: +// +// * all copies retain the above copyright notice, the above purchasing +// policy notice and this permission notice unmodified; +// +// * all copies retain the name of the software (DomeKey), the name of the +// author (Teddy Wing), and contact information (including, but not limited +// to, inquiry@domekey.teddywing.com, and domekey.teddywing.com URLs) +// unmodified; +// +// * no fee is charged for distribution of the software; +// +// * the best effort is made to explain the purchasing policy to all users of +// the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", AND THE AUTHOR AND COPYRIGHT HOLDERS +// DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, +// INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +// DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER +// IN AN ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING +// OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + #ifndef DOME_KEY_MAP_H #define DOME_KEY_MAP_H diff --git a/src/config.rs b/src/config.rs index 5d37fab..36f39db 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,3 +1,46 @@ +// Copyright (c) 2018 Teddy Wing +// +// This file is part of DomeKey. +// +// *Purchasing policy notice:* All users of the software are expected to +// purchase a license from Teddy Wing unless they have a good reason not to +// pay. Users who can't purchase a license may apply to receive one for free +// at inquiry@domekey.teddywing.com. Users are free to: +// +// * download, build, and modify the app; +// * share the modified source code; +// * share the purchased or custom-built binaries (with unmodified license +// and contact info), provided that the purchasing policy is explained to +// all potential users. +// +// This software is available under a modified version of the Open Community +// Indie Software License: +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose is hereby granted, subject to the following conditions: +// +// * all copies retain the above copyright notice, the above purchasing +// policy notice and this permission notice unmodified; +// +// * all copies retain the name of the software (DomeKey), the name of the +// author (Teddy Wing), and contact information (including, but not limited +// to, inquiry@domekey.teddywing.com, and domekey.teddywing.com URLs) +// unmodified; +// +// * no fee is charged for distribution of the software; +// +// * the best effort is made to explain the purchasing policy to all users of +// the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", AND THE AUTHOR AND COPYRIGHT HOLDERS +// DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, +// INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +// DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER +// IN AN ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING +// OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + use std::ffi::CString; use std::fs; use std::ptr; diff --git a/src/errors.rs b/src/errors.rs index f7f3d79..70d712f 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,3 +1,46 @@ +// Copyright (c) 2018 Teddy Wing +// +// This file is part of DomeKey. +// +// *Purchasing policy notice:* All users of the software are expected to +// purchase a license from Teddy Wing unless they have a good reason not to +// pay. Users who can't purchase a license may apply to receive one for free +// at inquiry@domekey.teddywing.com. Users are free to: +// +// * download, build, and modify the app; +// * share the modified source code; +// * share the purchased or custom-built binaries (with unmodified license +// and contact info), provided that the purchasing policy is explained to +// all potential users. +// +// This software is available under a modified version of the Open Community +// Indie Software License: +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose is hereby granted, subject to the following conditions: +// +// * all copies retain the above copyright notice, the above purchasing +// policy notice and this permission notice unmodified; +// +// * all copies retain the name of the software (DomeKey), the name of the +// author (Teddy Wing), and contact information (including, but not limited +// to, inquiry@domekey.teddywing.com, and domekey.teddywing.com URLs) +// unmodified; +// +// * no fee is charged for distribution of the software; +// +// * the best effort is made to explain the purchasing policy to all users of +// the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", AND THE AUTHOR AND COPYRIGHT HOLDERS +// DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, +// INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +// DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER +// IN AN ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING +// OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + use chrono; use magic_crypt; use xdg; @@ -1,3 +1,46 @@ +// Copyright (c) 2018 Teddy Wing +// +// This file is part of DomeKey. +// +// *Purchasing policy notice:* All users of the software are expected to +// purchase a license from Teddy Wing unless they have a good reason not to +// pay. Users who can't purchase a license may apply to receive one for free +// at inquiry@domekey.teddywing.com. Users are free to: +// +// * download, build, and modify the app; +// * share the modified source code; +// * share the purchased or custom-built binaries (with unmodified license +// and contact info), provided that the purchasing policy is explained to +// all potential users. +// +// This software is available under a modified version of the Open Community +// Indie Software License: +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose is hereby granted, subject to the following conditions: +// +// * all copies retain the above copyright notice, the above purchasing +// policy notice and this permission notice unmodified; +// +// * all copies retain the name of the software (DomeKey), the name of the +// author (Teddy Wing), and contact information (including, but not limited +// to, inquiry@domekey.teddywing.com, and domekey.teddywing.com URLs) +// unmodified; +// +// * no fee is charged for distribution of the software; +// +// * the best effort is made to explain the purchasing policy to all users of +// the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", AND THE AUTHOR AND COPYRIGHT HOLDERS +// DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, +// INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +// DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER +// IN AN ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING +// OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + use std::ffi::{CStr, CString}; use std::fs; use std::ptr; diff --git a/src/key_code.rs b/src/key_code.rs index 47e7a01..132e8af 100644 --- a/src/key_code.rs +++ b/src/key_code.rs @@ -1,3 +1,46 @@ +// Copyright (c) 2018 Teddy Wing +// +// This file is part of DomeKey. +// +// *Purchasing policy notice:* All users of the software are expected to +// purchase a license from Teddy Wing unless they have a good reason not to +// pay. Users who can't purchase a license may apply to receive one for free +// at inquiry@domekey.teddywing.com. Users are free to: +// +// * download, build, and modify the app; +// * share the modified source code; +// * share the purchased or custom-built binaries (with unmodified license +// and contact info), provided that the purchasing policy is explained to +// all potential users. +// +// This software is available under a modified version of the Open Community +// Indie Software License: +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose is hereby granted, subject to the following conditions: +// +// * all copies retain the above copyright notice, the above purchasing +// policy notice and this permission notice unmodified; +// +// * all copies retain the name of the software (DomeKey), the name of the +// author (Teddy Wing), and contact information (including, but not limited +// to, inquiry@domekey.teddywing.com, and domekey.teddywing.com URLs) +// unmodified; +// +// * no fee is charged for distribution of the software; +// +// * the best effort is made to explain the purchasing policy to all users of +// the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", AND THE AUTHOR AND COPYRIGHT HOLDERS +// DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, +// INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +// DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER +// IN AN ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING +// OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + use core_graphics::event::CGEventFlags; #[link(name="dome_key_event_source_simulator", kind="static")] @@ -1,3 +1,46 @@ +// Copyright (c) 2018 Teddy Wing +// +// This file is part of DomeKey. +// +// *Purchasing policy notice:* All users of the software are expected to +// purchase a license from Teddy Wing unless they have a good reason not to +// pay. Users who can't purchase a license may apply to receive one for free +// at inquiry@domekey.teddywing.com. Users are free to: +// +// * download, build, and modify the app; +// * share the modified source code; +// * share the purchased or custom-built binaries (with unmodified license +// and contact info), provided that the purchasing policy is explained to +// all potential users. +// +// This software is available under a modified version of the Open Community +// Indie Software License: +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose is hereby granted, subject to the following conditions: +// +// * all copies retain the above copyright notice, the above purchasing +// policy notice and this permission notice unmodified; +// +// * all copies retain the name of the software (DomeKey), the name of the +// author (Teddy Wing), and contact information (including, but not limited +// to, inquiry@domekey.teddywing.com, and domekey.teddywing.com URLs) +// unmodified; +// +// * no fee is charged for distribution of the software; +// +// * the best effort is made to explain the purchasing policy to all users of +// the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", AND THE AUTHOR AND COPYRIGHT HOLDERS +// DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, +// INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +// DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER +// IN AN ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING +// OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + #![recursion_limit="256"] extern crate autopilot; @@ -1,3 +1,46 @@ +// Copyright (c) 2018 Teddy Wing +// +// This file is part of DomeKey. +// +// *Purchasing policy notice:* All users of the software are expected to +// purchase a license from Teddy Wing unless they have a good reason not to +// pay. Users who can't purchase a license may apply to receive one for free +// at inquiry@domekey.teddywing.com. Users are free to: +// +// * download, build, and modify the app; +// * share the modified source code; +// * share the purchased or custom-built binaries (with unmodified license +// and contact info), provided that the purchasing policy is explained to +// all potential users. +// +// This software is available under a modified version of the Open Community +// Indie Software License: +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose is hereby granted, subject to the following conditions: +// +// * all copies retain the above copyright notice, the above purchasing +// policy notice and this permission notice unmodified; +// +// * all copies retain the name of the software (DomeKey), the name of the +// author (Teddy Wing), and contact information (including, but not limited +// to, inquiry@domekey.teddywing.com, and domekey.teddywing.com URLs) +// unmodified; +// +// * no fee is charged for distribution of the software; +// +// * the best effort is made to explain the purchasing policy to all users of +// the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", AND THE AUTHOR AND COPYRIGHT HOLDERS +// DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, +// INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +// DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER +// IN AN ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING +// OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + use std::env; use std::ffi::OsString; use std::process::Command; diff --git a/src/parser.rs b/src/parser.rs index 81f1573..8b19486 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1,3 +1,46 @@ +// Copyright (c) 2018 Teddy Wing +// +// This file is part of DomeKey. +// +// *Purchasing policy notice:* All users of the software are expected to +// purchase a license from Teddy Wing unless they have a good reason not to +// pay. Users who can't purchase a license may apply to receive one for free +// at inquiry@domekey.teddywing.com. Users are free to: +// +// * download, build, and modify the app; +// * share the modified source code; +// * share the purchased or custom-built binaries (with unmodified license +// and contact info), provided that the purchasing policy is explained to +// all potential users. +// +// This software is available under a modified version of the Open Community +// Indie Software License: +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose is hereby granted, subject to the following conditions: +// +// * all copies retain the above copyright notice, the above purchasing +// policy notice and this permission notice unmodified; +// +// * all copies retain the name of the software (DomeKey), the name of the +// author (Teddy Wing), and contact information (including, but not limited +// to, inquiry@domekey.teddywing.com, and domekey.teddywing.com URLs) +// unmodified; +// +// * no fee is charged for distribution of the software; +// +// * the best effort is made to explain the purchasing policy to all users of +// the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", AND THE AUTHOR AND COPYRIGHT HOLDERS +// DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, +// INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +// DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER +// IN AN ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING +// OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + use std::collections::HashMap; use autopilot; diff --git a/src/prefix_println.rs b/src/prefix_println.rs index d1a8949..31a2f96 100644 --- a/src/prefix_println.rs +++ b/src/prefix_println.rs @@ -1,3 +1,46 @@ +// Copyright (c) 2018 Teddy Wing +// +// This file is part of DomeKey. +// +// *Purchasing policy notice:* All users of the software are expected to +// purchase a license from Teddy Wing unless they have a good reason not to +// pay. Users who can't purchase a license may apply to receive one for free +// at inquiry@domekey.teddywing.com. Users are free to: +// +// * download, build, and modify the app; +// * share the modified source code; +// * share the purchased or custom-built binaries (with unmodified license +// and contact info), provided that the purchasing policy is explained to +// all potential users. +// +// This software is available under a modified version of the Open Community +// Indie Software License: +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose is hereby granted, subject to the following conditions: +// +// * all copies retain the above copyright notice, the above purchasing +// policy notice and this permission notice unmodified; +// +// * all copies retain the name of the software (DomeKey), the name of the +// author (Teddy Wing), and contact information (including, but not limited +// to, inquiry@domekey.teddywing.com, and domekey.teddywing.com URLs) +// unmodified; +// +// * no fee is charged for distribution of the software; +// +// * the best effort is made to explain the purchasing policy to all users of +// the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", AND THE AUTHOR AND COPYRIGHT HOLDERS +// DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, +// INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +// DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER +// IN AN ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING +// OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + #[macro_export] macro_rules! dkeprintln { () => (eprint!("\n")); diff --git a/src/trial.rs b/src/trial.rs index df97ed1..909f7b4 100644 --- a/src/trial.rs +++ b/src/trial.rs @@ -1,3 +1,46 @@ +// Copyright (c) 2018 Teddy Wing +// +// This file is part of DomeKey. +// +// *Purchasing policy notice:* All users of the software are expected to +// purchase a license from Teddy Wing unless they have a good reason not to +// pay. Users who can't purchase a license may apply to receive one for free +// at inquiry@domekey.teddywing.com. Users are free to: +// +// * download, build, and modify the app; +// * share the modified source code; +// * share the purchased or custom-built binaries (with unmodified license +// and contact info), provided that the purchasing policy is explained to +// all potential users. +// +// This software is available under a modified version of the Open Community +// Indie Software License: +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose is hereby granted, subject to the following conditions: +// +// * all copies retain the above copyright notice, the above purchasing +// policy notice and this permission notice unmodified; +// +// * all copies retain the name of the software (DomeKey), the name of the +// author (Teddy Wing), and contact information (including, but not limited +// to, inquiry@domekey.teddywing.com, and domekey.teddywing.com URLs) +// unmodified; +// +// * no fee is charged for distribution of the software; +// +// * the best effort is made to explain the purchasing policy to all users of +// the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", AND THE AUTHOR AND COPYRIGHT HOLDERS +// DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, +// INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +// DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA, OR PROFITS, WHETHER +// IN AN ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING +// OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + use std::fs::{File, OpenOptions}; use std::io::{self, Read, Write}; use std::result; |
