Commit Graph

83 Commits

Author SHA1 Message Date
Jon Skeet
cc058e1118 Remove RPC support.
It is expected that third parties will generate service/RPC code themselves - see gRPC as an example.
2015-04-29 08:55:07 +01:00
Jon Skeet
e8310aa259 Remove a bunch of files which are no longer relevant:
1) Project files for different configurations - we're going to look at all this again, ideally to just have a single PCL-compatible build
2) ProtoGen - the C++ generator is now the only one we care about
3) Proto files - these are mostly duplicates (or older versions) of the ones in the common directories
2015-04-29 06:55:51 +01:00
Jon Skeet
5ca6dd76fb Update DescriptorProtoFile.cs and UnitTest.cs to indicate manual changes.
(Having regenerated descriptor.proto relative to src, the earlier commented-out code checking that dependencies match may now be okay to uncomment again. Will experiment in later CLs.)
2015-04-28 18:47:47 +01:00
Jon Skeet
ce66c5f1b9 Updated set of unit tests and unit test protos.
This commit includes changes to the C#-specific protos, and rebuilt versions of the "stock" protos.
The stock protos have been locally updated to have a specific C# namespace, but this is expected to change soon, so hasn't been committed.
Four areas are currently not tested:
1) Serialization - we may restore this at some point, possibly optionally.
2) Services - currently nothing is generated for this; will need to see how it interacts with GRPC
3) Fields beginning with _{digit} - see https://github.com/google/protobuf/issues/308
4) Fields with names which conflict with the declaring type in nasty ways - see https://github.com/google/protobuf/issues/309
2015-04-28 15:06:59 +01:00
Jon Skeet
f3504cf3b1 First part of making the C# runtime work with the new codegen.
1) Remove CSharpOptions
2) A new version of DescriptorProtoFile (with manual changes from codegen - it would otherwise be Descriptor.cs)
3) Turn off CLS compliance (which we'll remove from the codebase entirely; I don't think it's actually relevant these days)
4) Add "public imports" to FileDescriptor, with code broadly copied from the Java codebase.
Lots more changes to commit before it will build and tests run, but one step at a time...
2015-04-28 14:53:24 +01:00
Jan Tattermusch
1eab56aee8 removed .hgignore file 2015-04-16 12:31:48 -07:00
Jan Tattermusch
4e80fe15ed Added instructions to manually download the dependencies 2015-04-16 12:30:14 -07:00
Jan Tattermusch
6b7f0172b9 cleanup of csharp/lib/ directory 2015-04-16 10:56:23 -07:00
Jan Tattermusch
e77878ebc7 Updated readme.md and changes.txt, removed old license.txt 2015-04-16 10:23:54 -07:00
Jan Tattermusch
84fa3e2bbc Imported protobuf-csharp-port into csharp/ tree 2015-04-16 09:55:22 -07:00
Jon Skeet
f0589506c9 Wiping slate clean to start again with new layout. 2008-10-22 13:18:49 +01:00
Jon Skeet
e60ce8bfaf Final commit before changing layout 2008-10-22 07:11:17 +01:00
Jon Skeet
7f90d8ee57 Made things a bit more public for the sake of ProtoGen 2008-10-02 21:46:17 +01:00
Jon Skeet
7fd62ffd77 Initial setup of generator code. Little real functionality so far. 2008-09-04 15:13:21 +01:00
Jon Skeet
4658a3dd7e Doc fix 2008-09-04 14:44:03 +01:00
Jon Skeet
dd9703ba53 Reduce dependencies 2008-09-04 14:43:43 +01:00
Jon Skeet
881db010cb Fix initialization check when an optional field has required subfields 2008-09-04 14:43:17 +01:00
Jon Skeet
0dabc77f7f Renamed GeneratedRepeatException to GeneratedRepeatExtension 2008-09-04 14:41:09 +01:00
Jon Skeet
be432ca43c Added a doc TODO 2008-09-04 14:35:05 +01:00
Jon Skeet
57be03df65 Removed unnecessary delegate 2008-09-04 14:34:01 +01:00
Jon Skeet
0bf2ad145d Implemented popsicle immutability for lists. Modified MessageStreamIterator to be singly generic. 2008-08-21 21:57:58 +01:00
Jon Skeet
ad6903fe33 Fix to constructor access for nested types, and first pass at streaming. 2008-08-19 21:24:21 +01:00
Jon Skeet
f09fed217f Small tidying. 2008-08-16 21:23:40 +01:00
Jon Skeet
2cbd799b5e Comments. 2008-08-15 21:24:06 +01:00
Jon Skeet
984eb9c27a Just comments. 2008-08-15 21:15:41 +01:00
Jon Skeet
0b6d39acc4 Remove unused variable. 2008-08-15 21:14:41 +01:00
Jon Skeet
92b0aaa09e Use a nullable int for the memoizedSize, just because it's neater. 2008-08-15 21:12:55 +01:00
Jon Skeet
9deef9baec Add aliases into enums 2008-08-15 20:57:15 +01:00
Jon Skeet
10ad653ce5 Reflect Java source code. 2008-08-15 20:48:16 +01:00
Jon Skeet
40c2221ef4 Updated C# tests and code for TextFormat to match Java. 2008-08-15 20:40:05 +01:00
Jon Skeet
7941ebf198 Updates due to changes to descriptor.proto 2008-08-15 20:08:37 +01:00
Jon Skeet
8f721f5dc7 Experimental (and currently unused) behaviour to determine whether or not a message has any required fields. 2008-08-14 20:38:09 +01:00
Jon Skeet
b01135c485 Align delegates with .NET 3.5 2008-08-14 20:38:08 +01:00
Jon Skeet
6d0cbe7200 Use a switch instead of a map for WireFormat. 2008-08-14 20:38:08 +01:00
Jon Skeet
0980982095 Evil reflection optimisation. 2008-08-14 20:38:07 +01:00
Jon Skeet
38da52d349 Micro-optimisations around varints and strings. 2008-08-14 20:38:06 +01:00
Jon Skeet
272d384f6a Use delegates instead of dynamic reflection. 2008-08-14 20:37:12 +01:00
Jon Skeet
3b3150881a Optimisations of IsInitialized and removal of unnecessary references. 2008-08-14 20:37:11 +01:00
Jon Skeet
81efcf25f3 Removed accidental addition of test directory. 2008-08-14 20:37:10 +01:00
Jon Skeet
62b3d31fb7 Fixed a few TODOs 2008-08-14 20:36:24 +01:00
Jon Skeet
eb4ef52c66 Abandon the 'self' namespace alias - we need to be able to import types in other namespaces too. 2008-08-14 20:35:35 +01:00
Jon Skeet
5407a4329d Signed the test assembly, and added InternalsVisibleTo. Some public members now internal again. 2008-08-14 20:35:34 +01:00
Jon Skeet
38d453d318 Beginning to fix the TODOs 2008-08-14 20:35:34 +01:00
Jon Skeet
15041fa06c Removed EnumDescriptorIndexAttribute - not really necessary. 2008-08-14 20:35:33 +01:00
Jon Skeet
283b7a1a51 Batch file to generate the bootstrapping proto files 2008-08-14 20:35:33 +01:00
Jon Skeet
48ce28bf2f Copyright fixes, a bit of documentation, and removed unnecessary using directives. 2008-08-14 20:35:32 +01:00
Jon Skeet
5923b37223 Finished service test with a mock. 2008-08-14 20:35:31 +01:00
Jon Skeet
3ae573c174 Fleshed out service interfaces, and wrote the simpler service tests. Mocking tests still to be done. 2008-08-14 20:35:31 +01:00
Jon Skeet
1e42fdde2e Implemented text parsing. 2008-08-14 20:35:30 +01:00
Jon Skeet
feb9385b04 Lots of text formatting tests, but ignored the parsing ones for the moment. 2008-08-14 20:35:30 +01:00