1. 01 Oct, 2018 3 commits
  2. 29 Sep, 2018 1 commit
    • Matt Mastracci's avatar
      Remove lifetime specifier on table getter methods (#4949) · bf871ffd
      Matt Mastracci authored
      With the old-style code, the test fails with a borrow-checker error:
      
      ```
        #[inline]
        pub fn name(&'a self) -> &'a str {
          self._tab.get::<flatbuffers::ForwardsUOffset<&str>>(Monster::VT_NAME, None).unwrap()
        }
      ```
      
      ```
      error[E0597]: `e` does not live long enough
         --> tests/integration_test.rs:273:57
          |
      273 |         let enemy_of_my_enemy = monster.enemy().map(|e| e.name());
          |                                                         ^      - `e` dropped here while still borrowed
          |                                                         |
          |                                                         borrowed value does not live long enough
      274 |         assert_eq!(enemy_of_my_enemy, Some("Fred"));
      275 |     }
          |     - borrowed value needs to live until here
      ```
      bf871ffd
  3. 28 Sep, 2018 1 commit
  4. 27 Sep, 2018 3 commits
  5. 26 Sep, 2018 1 commit
  6. 24 Sep, 2018 2 commits
  7. 21 Sep, 2018 4 commits
  8. 20 Sep, 2018 1 commit
    • Christopher Cifra's avatar
      [C#] Fix compile issue when compiling with older versions of C# (#4938) · ed03faaf
      Christopher Cifra authored
      * C# support for directly reading and writting to memory other than byte[].  For example, ByteBuffer can be initialized with a custom allocator which uses shared memory / memory mapped files.
      
      Public access to the backing buffer uses Span<T> instead of ArraySegment<T>.
      
      Writing to the buffer now supports Span<T> in addition to T[].
      
      To maintain backwards compatibility ENABLE_SPAN_T must be defined.
      
      * Remove usage of expression bodied method so that ByteBuffer can be compiled with older version of C#.
      ed03faaf
  9. 12 Sep, 2018 1 commit
  10. 06 Sep, 2018 2 commits
  11. 05 Sep, 2018 1 commit
  12. 04 Sep, 2018 9 commits
  13. 03 Sep, 2018 1 commit
    • Robert's avatar
      Port FlatBuffers to Rust (#4898) · 3c54fd96
      Robert authored
      This is a port of FlatBuffers to Rust. It provides code generation and a
      runtime library derived from the C++ implementation. It utilizes the
      Rust type system to provide safe and fast traversal of FlatBuffers data.
      
      There are 188 tests, including many fuzz tests of roundtrips for various
      serialization scenarios. Initial benchmarks indicate that the canonical
      example payload can be written in ~700ns, and traversed in ~100ns.
      
      Rustaceans may be interested in the Follow, Push, and SafeSliceAccess
      traits. These traits lift traversals, reads, writes, and slice accesses
      into the type system, providing abstraction with no runtime penalty.
      3c54fd96
  14. 30 Aug, 2018 1 commit
  15. 24 Aug, 2018 1 commit
  16. 23 Aug, 2018 2 commits
  17. 20 Aug, 2018 3 commits
  18. 16 Aug, 2018 2 commits
    • Andy Martin's avatar
      Add C#/Java generator behaviour for 'private' attribute (#4882) · c2c3a84a
      Andy Martin authored
      * Added 'private' attribute, supported when generating C# and Java
      
      * Added use of 'private' attribute in monster_test
      c2c3a84a
    • Uilian Ries's avatar
      Conan build packages on CI (#4590) (#4594) · 1f03becd
      Uilian Ries authored
      * Build Conan package on Travis CI (#4590)
      
      - Added multi package support on Linux, running on Travis CI
      - Only upload when branch is a tag and named "vX.Y.Z"
      - Replace Conan injection by Conan wrapper
      - Removed os_build os_arch -- Conan 1.0.1 hotfix
      Signed-off-by: 's avatarUilian Ries <uilianries@gmail.com>
      
      * Build Conan package on OSX (#4590)
      
      - Added jobs to build Flatbuffers on OSX running on Travis
      Signed-off-by: 's avatarUilian Ries <uilianries@gmail.com>
      
      * Build Conan package on Windows (#4590)
      
      - Added support necessary to build Flatbuffers on Windows (conan)
      - Added Appveyor jobs to build Conan package
      - Only build Conan package when release (tag)
      Signed-off-by: 's avatarUilian Ries <uilianries@gmail.com>
      
      * Reduce Conan CI support to simple scripts (#4590)
      
      - Removed msvc 10 x86_64 workaround
      - Updated conan remote address
      - Added Bincrafters' package tools
      Signed-off-by: 's avatarUilian Ries <uilianries@gmail.com>
      
      * Add fPIC option on Conan recipe (#4590)
      
      - Add fPIC as optional. It works on Linux and OSX
      - Update recipe metadata: author, homepage, license
      - Checking for flatc and flathash on Conan package
      Signed-off-by: 's avatarUilian Ries <uilianries@gmail.com>
      
      * Build Conan package on CI (#4590)
      
      - Add rule to run conan job only for tags
      - Run Conan on Linux, OSX and Windows
      - Update package tool to new interface
      Signed-off-by: 's avatarUilian Ries <uilianries@gmail.com>
      
      * Update Conan username (#4590)
      
      - Use google as default username
      Signed-off-by: 's avatarUilian Ries <uilianries@gmail.com>
      
      * Update OSX version on CI (#4590)
      
      - Use latest OSX 9.3 version to build Conan package
      Signed-off-by: 's avatarUilian Ries <uilianries@gmail.com>
      1f03becd
  19. 13 Aug, 2018 1 commit
    • kulswanand's avatar
      Proposing use of C++ header files and functions (#4869) · c7210094
      kulswanand authored
      * Proposing use of C++ header files and functions 
      
      Proposing use of C++ header files and functions instead of C header file and functions. 
      Here are few examples for comparison : 
      
      C                            C++
      <cstdio>                <iostream> & <fstream>
      printf()                     cout 
      fopen()                    ifstream
      etc ...
      
      Please let me know if there are any comments.
      
      * Updated diff based on review comments
      c7210094